文章目录
- 问题描述
- 解决方法
问题描述
想要通过 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
















