Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to build a deb package with the latest version of openssh from source. Then I want to install it on my machine. I am running:

Linux Ubuntu-1110-oneiric-64-minimal 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

To achieve my goal I do:

gpg openssh-5.9p1.tar.gz.asc 
apt-get build-dep openssh-server openssh-client
apt-get source openssh-server
cd openssh-5.8p1/
uupdate -v 5.9p1 /root/packages/openssh/openssh-5.9p1.tar.gz
cd ../openssh-5.9p1
dpkg-buildpackage -us -uc -nc

But I get an error:

make[1]: Entering directory `/root/packages/openssh/openssh-5.9p1'
rm -f debian/tmp/etc/ssh/sshd_config
dh_install -Nopenssh-client-udeb -Nopenssh-server-udeb --fail-missing
cp: cannot stat `debian/tmp/usr/bin/ssh-vulnkey': No such file or directory
dh_install: cp -a debian/tmp/usr/bin/ssh-vulnkey debian/openssh-client//usr/bin/     returned exit code 1
make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/root/packages/openssh/openssh-5.9p1'
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

Any ideas what do I do to make this work?

share|improve this question

ssh-vulnkey looks like its part of the openssh-client package. I'm not that familiar with Ubuntu packaging, but I assume you'd also have to do something like apt-get source openssh-client to get that file, since it won't be in the openssh-server source package.

$ dpkg -S ssh-vulnkey
openssh-client: /usr/bin/ssh-vulnkey
share|improve this answer
up vote 0 down vote accepted

The solution was to download the unstable 5.9 *.deb and install it manually.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.