问题描述
想要通过 XShell 或者 Putty 等软件远程连接 Ubuntu
解决方法
① 安装 openssh-server 软件包
sudo apt update
sudo apt install openssh-server
② 修改ssh 配置
输入以下命令打开配置文件
sudo nano /etc/ssh/sshd_config
(1) 去除 Port 22 的注释
![在这里插入图片描述]()
(2) 去除 PasswordAuthentication yes 的注释
![在这里插入图片描述]()
保存退出
③ 启动 ssh
sudo /etc/init.d/ssh start