Debian9 开启 ssh

【安装】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

你可能感兴趣的:(Debian9 开启 ssh)