1.ubuntu 18.04系统默认是普通用户登录,首先设置root密码
sudo passwd
2.安装openssh-server
apt install openssh-server -y
如果出现报错,请参考下图解决即可
3.修改配置文件/etc/ssh/sshd_config
插入一行配置:
PermitRootLogin yes
4.重启sshd
systemctl restart sshd
1.ubuntu 18.04系统默认是普通用户登录,首先设置root密码
sudo passwd
2.安装openssh-server
apt install openssh-server -y
如果出现报错,请参考下图解决即可
3.修改配置文件/etc/ssh/sshd_config
插入一行配置:
PermitRootLogin yes
4.重启sshd
systemctl restart sshd
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。