1- get the RPM, which won't rebuild successfully because you don't have GTK 2 installed. ncftpget ftp://ftp.easynet.be/openssh/portable/rpm/SRPMS/openssh-3.7p1-1.src.rpm 2- install the sources so you can edit the RPM spec file rpm -ihv openssh-3.7p1-1.src.rpm 3- cd to where the spec file was installed cd /usr/src/redhat/SPECS/ 4- patch the spec file so that it doesn't depend on GTK 2 anymore. (Or just manually change the 1 on line 24 to a 0.) patch << EOF --- openssh.spec-orig Wed Sep 17 15:08:44 2003 +++ openssh.spec Wed Sep 17 15:39:04 2003 @@ -20,8 +20,8 @@ # Do we want smartcard support (1=yes 0=no) %define scard 0 -# Use GTK2 instead of GNOME in gnome-ssh-askpass -%define gtk2 1 +# Use GNOME instead of GTK2 in gnome-ssh-askpass +%define gtk2 0 # Is this build for RHL 6.x? %define build6x 0 EOF 5- build the SRPM with the new spec file. (It will appear in /usr/src/redhat/SRPMS so you might want to make sure the original isn't also in there.) rpm -bs openssh.spec OK, now you can rebuild and install the SRPM... which is the part that failed before. 6- rebuild the binary RPM (This takes 3 1/2 minutes on my PIII-500 box) rpm --rebuild /usr/src/redhat/SRPMS/openssh-3.7p1-1.src.rpm 7- Check the last few lines of output. Hopefully about 15 lines from the end, it says: Wrote: /usr/src/redhat/RPMS/i386/openssh-3.7p1-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/openssh-clients-3.7p1-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/openssh-server-3.7p1-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/openssh-askpass-3.7p1-1.i386.rpm Wrote: /usr/src/redhat/RPMS/i386/openssh-askpass-gnome-3.7p1-1.i386.rpm Now you have binary RPMs that you can install. If this failed, you have some other problem to fix. 8- "Freshen" OpenSSH on your system using the binary RPM you just made cd /usr/src/redhat/RPMS/i386/ rpm -Fvh openssh-3.7p1-1.i386.rpm openssh-askpass-3.7p1-1.i386.rpm \ openssh-askpass-gnome-3.7p1-1.i386.rpm openssh-clients-3.7p1-1.i386.rpm \ openssh-server-3.7p1-1.i386.rpm 9- [Re]start sshd /etc/rc.d/init.d/sshd restart 10 - Raise arms above head and shout "Woo hoo!" 11- Undo any temporary measures (firewall rule changes) that you put in place to keep from getting 0wn3d :)