# 关闭防火墙

systemctl stop SuSEfirewall2.service

systemctl stop SuSEfirewall2_init.service

 

systemctl disable SuSEfirewall2.service

systemctl disable SuSEfirewall2_init.service

 

# 设置密码可以登陆

sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config

 也可以直接vim /etc/ssh/sshd_config 打开文件去掉如下图的注释,将no改成yes

Xshell 5连接上suse

 

 

 

 

 

# 启动 sshd 服务

systemctl restart sshd

systemctl enable sshd

 

相关文章:

  • 2021-07-24
  • 2021-12-17
  • 2021-11-16
  • 2021-08-23
  • 2021-08-02
  • 2021-11-10
  • 2022-01-21
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2021-08-06
  • 2021-07-18
  • 2021-12-05
  • 2021-11-18
  • 2021-11-21
相关资源
相似解决方案