ssh配置链接远程服务器
·
一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。
1.安装ssh服务器
sudo apt install openssh-server
2.安装ssh客户端
sudo apt install openssh-client
2.配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出
sudo vi /etc/ssh/ssh_config

3.配置ssh服务器,把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出
sudo vi /etc/ssh/sshd_config

4.最后,重启ssh服务
sudo /etc/init.d/ssh restart
更多推荐



所有评论(0)