LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Upgrading ssh

[ILUG] Upgrading ssh

Vincent Cunniffe vincent at cunniffe.net
Thu Mar 14 11:32:22 GMT 2002


Anders Holm wrote:
> Hi!
> 
> To upgrade SSH remotely, do the following:
> 
> scp the new package over to the box to be upgraded.
> ssh in to the system.
> check the pid of the current SSH sessions and who is logged in.
> take a note of the PARENT pid!
> do: /etc/rc.d/init.d/sshd stop
> KILL the PARENT process.
> do the upgrade...

And if for any reason you hit one too many CTRL-D's while you do this,
you're shagged ;-)

My routine is :

1. SSH in.
2. wget the latest package from the homepage
3. Configure and make, ensuring that I include such things as PAM support
    where relevant
4. run the binary on a spare port (-p portno) and ssh in to test that user
    auth, etc. is all working)
5. When happy with above, *then* find the parent sshd process, slaughter it
    and immediately run the one you've just compiled to take it's place.

This procedure allows me to maintain multiple boxen, linux and freebsd, from
New Zealand, and I haven't had to phone anyone yet ;-)

Vin





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell