安装ssh服务器
sudo apt-get install openssh-server

安装ssh客户端
sudo apt-get install openssh-client

配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出
sudo vi /etc/ssh/sshd_config

配置ssh服务器,把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出

重启ssh服务
sudo /etc/init.d/ssh restart

浙公网安备 33010602011771号