ubuntu 16.04 deployment sshd

1) Install ssh server in the background

sudo apt-get install openssh-server

2) Start sshd

sudo service ssh start

3) Set the boot to start automatically

sudo sysv-rc-conf

Select ssh to be enabled on levels 2, 3, 4, and 5. As shown below

4) Configure root can also log in.

sudo vim /etc/ssh/sshd_config

Modify the [PermitRootLogin without-password] to [PermitRootLogin yes].

sudo service ssh restart

Just restart the ssh service.

5) Log in to sshd

sudo ssh username@your_ip

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325015084&siteId=291194637