ubuntu安装ssh

来源:互联网 发布:故乡天下黄花知乎 编辑:程序博客网 时间:2024/06/04 19:04

ubuntu安装ssh

ssh是一种安全协议,主要用于给远程登录会话数据进行加密,保证数据传输的安全


安装步骤:

1. 更新源列表
sudo apt-get update
2. 安装ssh
sudo apt-get install openssh-server
3. 使用gedit修改配置文件”/etc/ssh/sshd_config”
sudo gedit /etc/ssh/sshd_config

  配置文件中的”PermitRootLogin without-password”注释
  再增加一句”PermitRootLogin yes”

4. 重启ssh服务
sudo service ssh restart
0 0