After i upgraded openSSH to the latest version: OpenSSH_5.9p1 i tried to change the /etc/ssh/sshd_config , tried to set enable chrooted access and restarted the ssh with #/etc/init.d/sshd restart. But it gives the an error specific to the old version: OpenSSH_4.5p1.
When i tried to reconnect from putty i connected to OpenSSH server OpenSSH_4.5p1. Then #ssh -v shows new updated version OpenSSH_5.9p. Looks like there is 2 version of SSH is running now.
/etc/init.d/sshd still uses the old version /usr/sbin/sshd. Looks like the new version been installed in /usr/local/bin/ssh. In /etc/init.d/sshd i tried changed SSHD from /usr/sbin/sshd to /usr/local/bin/ssh. But then i could not restart the ssh due to this error:
Starting sshd: usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
[FAILED]
Any suggestion ?
thanks.
rpm -qa | grep ssh? Please edit your post and give use the exactly error when you restart sshd and connect from PuTTY withssh -v? – quanta Sep 12 '11 at 7:57/usr/local/bin/sshisn't the server, it's the client. You will want to look for/usr/local/bin/sshd(or similar). That will be the server. – slillibri Sep 12 '11 at 8:20