一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。
安装ssh服务器
sudo apt install openssh-server

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

配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出
sudo vi /etc/ssh/ssh_config
![]()

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

重启ssh服务
sudo /etc/init.d/ssh restart
![]()

本文介绍如何在Ubuntu系统中安装和配置SSH服务器与客户端。主要内容包括安装openssh-server和openssh-client,配置ssh服务器允许root登录及配置客户端取消密码验证。
1万+

被折叠的 条评论
为什么被折叠?



