Ubuntu开启ssh访问_虚拟机开启ssh访问
1,安装ssh服务器
sudo apt install openssh-server
2,安装ssh客户端
sudo apt install openssh-client
3, 配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出。
sudo vi /etc/ssh/ssh_config
4,配置ssh服务器,把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出。
sudo vi /etc/ssh/sshd_config
5,重启ssh服务。
sudo /etc/init.d/ssh restart
搞定了。
本文来自博客园,作者:am7s,转载请注明原文链接:https://www.cnblogs.com/am7s/p/15229825.html

浙公网安备 33010602011771号