美文网首页
Ubuntu ssh安装及配置

Ubuntu ssh安装及配置

作者: azim | 来源:发表于2017-09-14 12:21 被阅读0次

1.启用root账户:sudo passwd root

2.安装OpenSSH server:

1)使用apt命令安装openssh server

    $ sudo apt-get install openssh-server

2)可以对 openssh server进行配置

    $ sudo vi /etc/ssh/sshd_config

找到PermitRootLogin no一行,改为PermitRootLogin yes

3. 重启 openssh server

    $ sudo service ssh restart

相关文章

网友评论

      本文标题:Ubuntu ssh安装及配置

      本文链接:https://www.haomeiwen.com/subject/qzxdsxtx.html