ubuntu安装openssh-server

安装openssh-server软件包

sudo apt-get install openssh-server

修改配置使可用root账户密码登录连接

sudo vim /etc/ssh/sshd_config
wgAph9cyUds4DHn.png

编辑此文件,新增如图所示一行配置,然后重启sshd服务

sudo systemctl restart sshd

Service - OpenSSH | Ubuntu

你可能感兴趣的:(ubuntu安装openssh-server)