1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > ubuntu 安装 ssh 服务并使用 root 登录

ubuntu 安装 ssh 服务并使用 root 登录

时间:2019-01-19 14:56:32

相关推荐

ubuntu 安装 ssh 服务并使用 root 登录

1、安装 ssh 服务

sudo apt-get install openssh-server -y

2、设置 roo t密码,ubuntu 默认 root 密码是随机的,需要重置一下

sudo passwd root

3、允许 root 用户登录,编辑 sshd_config

sudo vim /etc/ssh/sshd_config找到 PermitRootLogin prohibit-password改成 PermitRootLogin yes

4、重启 ssh

sudo systemctl restart sshd

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。