Click to read the original
SSH sub-client openssh-client and Openssh-server
If you just want to log on to another machine SSH only need to install Openssh-client (Ubuntu has default installation, if not then sudo apt-get install openssh-client), If you want to make the native SSH service open, you need to install Openssh-server
sudo apt-get install openssh-server
then confirm that the Sshserver is started:
ps-e |grep ssh
If you see sshd that means Ssh-server has been activated.
if not, you can start this way: Sudo/etc/init.d/ssh start
ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222.
then restart the SSH service:
sudo/etc/init.d/ssh Stop
sudo/etc/init.d/ssh Start
then use the following method to log in to SSH:
ssh [email protected] username for users on the 192.168.1.112 machine, you need to enter a password.
Disconnect: Exit
[Go] ubuntu open SSH Service