SUSE linux 允许公钥登录和密码登录

# 一、修改配置文件
vi /etc/ssh/sshd_config
# 1.指定公钥公钥认证文件位置
AuthorizedKeysFile   .ssh/authorized_keys

# 2.允许使用公钥登录,yes
PubkeyAuthentication yes

# 3.允许密码登录,yes
PasswordAuthentication yes

# 二、重启服务
service sshd restart 

你可能感兴趣的:(运维,排错)