liwutao

安装ssh服务器端

yum install -y openssl openssh-server

修改配置

vi /etc/ssh/sshd_config

打开注释的行(如果没有就添加):

PermitRootLogin yes

RSAAuthentication yes

PubkeyAuthentication yes

AuthorizedKeysFile      .ssh/authorized_keys

 

启动ssh服务

systemctl start sshd.service

设置开机启动

systemctl enable sshd.service

 

安装客户端

yum install -y openssh-clients

安装完成执行ssh,如下提示即成功。

 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-01-05
  • 2022-02-07
  • 2021-12-13
  • 2022-03-01
  • 2021-11-15
猜你喜欢
  • 2022-02-07
  • 2022-01-05
  • 2022-02-07
  • 2022-02-07
  • 2021-06-21
  • 2021-07-12
  • 2021-11-18
相关资源
相似解决方案