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 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]]
Any suggestion ?