想要通过 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