I have installed openssh-server in my Ubuntu PC using
apt-get install openssh-server. The version is 5.9.
Now, I would like to compile and install openssh-server version 6.2 from source codes. I have successfully downloaded the source codes, and run the following commands:
I found that the new version of openssh-server was installed into /usr/local/sbin/. The old version of openssh-server was in /usr/sbin/.
I found that the service script in /etc/init.d/ssh is still pointing to /usr/sbin/. And the old openssh-server (v5.9) is still running.
- How can I replace the old openssh-server with the new openssh-server that I have just compiled and installed?
- How can I create a init.d script to start and stop the new openssh-server that I've compiled from source?
- How to start the new openssh-server on boot?
- When I install openssh-server using
apt-get install, the config files will be installed into /etc/ssh/. If I compile and install it from source, where is the config file?