安装ssh服务

sudo apt-get install open-ssh

找到sshd.config

默认安装完成后到
/etc/ssh/sshd.config
可以找到这个文件
vi /etc/ssh/sshd.config 编辑文件

找到 permitrootlogin 修改为yes
ubutun-ssh设置外部可以通过root访问

然后esc,shit+:,wq!,enter保存。

这样我们通过

ssh [email protected]就可以访问。

默认ubuntun装好以后会使用个人账户.xxx
我们可以通过su root命令设置root的密码

相关文章: