【安裝】ssh
$ sudo apt install openssh-server
$ sudo apt install openssh-client
$ sudo apt install ssh
【修改】sudo vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
修改為
PermitRootLogin yes
【重啟】ssh
$ sudo service ssh restart
【安裝】ssh
$ sudo apt install openssh-server
$ sudo apt install openssh-client
$ sudo apt install ssh
【修改】sudo vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
修改為
PermitRootLogin yes
【重啟】ssh
$ sudo service ssh restart