Hello all, A few days ago I noticed that the following seems to happen when upgradign OpenSSH on Linux-based (/etc/rc.d/init.d/sshd) based systems: - sshd is restarted with 'sshd restart'; however sshd serving in port 22 is not replaced. - you have to kill the old one (netstat -ltp | grep :ssh ; kill ...) first, then restart sshd. - This might happen only when performing the upgrade while connected on the system w/ ssh; not sure. However, I'm not sure which would be the best way to get around this. -- Pekka Savola "Tell me of difficulties surmounted, Pekka.Savola at netcore.fi not those you stumble over and fall"
On Sat, 30 Sep 2000, Pekka Savola wrote:> Hello all, > > A few days ago I noticed that the following seems to happen when upgradign > OpenSSH on Linux-based (/etc/rc.d/init.d/sshd) based systems:Are you sure - it works for me: [djm at mothra djm]$ ssh root at toad Warning: Remote host denied X11 forwarding. Last login: Sun Oct 1 12:06:59 2000 from mothra.mindrot.org [root at toad /root]# telnet localhost 22 Trying 127.0.0.1... Connected to toad.mindrot.org. Escape character is '^]'. SSH-1.99-OpenSSH_2.1.1 ^] telnet> close Connection closed. [root at toad /root]# rpm -Uvh /mnt/archive/rpms/local/openssh/openssh-[2cs]*i386* openssh ################################################## openssh-clients ################################################## openssh-server ################################################## Shutting down sshd: [ OK ] Starting sshd: [ OK ] [root at toad /root]# telnet localhost 22 Trying 127.0.0.1... Connected to toad.mindrot.org. Escape character is '^]'. SSH-1.99-OpenSSH_2.2.0p1 ^] telnet> close Connection closed. [root at toad /root]# -d -- | ``The power of accurate observation is | Damien Miller <djm at mindrot.org> | commonly called cynicism by those who | @Work <djm at ibs.com.au> | have not got it'' - George Bernard Shaw | http://www.mindrot.org
On Sat, 30 Sep 2000, Pekka Savola wrote:>Hello all, > >A few days ago I noticed that the following seems to happen when upgradign >OpenSSH on Linux-based (/etc/rc.d/init.d/sshd) based systems: > >- sshd is restarted with 'sshd restart'; however sshd serving in port 22 >is not replaced. > >- you have to kill the old one (netstat -ltp | grep :ssh ; kill >...) first, then restart sshd. > >- This might happen only when performing the upgrade while connected on >the system w/ ssh; not sure. > >However, I'm not sure which would be the best way to get around this.Any sshd's that are serving the port, if you kill them, will disconnect someone. Let them keep running and just restart the parent process. Me, when I work on the ssh configuration of a remote machine, log in with telnet; and conversely, when I'm working on the srp config, I log in with ssh. (Telnet is set up to require srp.) phma
Maybe Matching Threads
- RHL init.d/sshd ipv6 hack
- Key exchange/selection badly broken in SNAP1014?
- Kerberos/AFS options in ssh/sshd while disabling them in configure
- 2.5.1p1 logout hangs after RHL crond start
- [Bug 105117] New: desktop freeze playing video nouveau: DATA_ERROR INVALID_BITFIELD