ubuntu open-ssh配置

2020-04-01  本文已影响0人  spyder_men

安装

  sudo apt install openssh-server

配置

vi /etc/ssh/sshd_config 
  PermitRootLogin yes  #允许root用户登录
  PubkeyAuthentication yes #允许密钥登录
  AuthorizedKeysFile         .ssh/authorized_keys #密钥存放位置
  PasswordAuthentication yes #允许密码登录

错误日志调试

 service sshd stop
 /usr/sbin/sshd -d
上一篇 下一篇

猜你喜欢

热点阅读