N5105 esxi ssh修改密码登录保存不上

sshd_config 这个文件里面34行,重启还会恢复

# Do not edit this file, config store overwrites it.
# This file contains the Server Config for SSH.
# Running from inetd.
# VMware ESXi – 8.0.2-0.30.23305546

#acceptenv
allowstreamlocalforwarding no
allowtcpforwarding no
banner /etc/issue
challengeresponseauthentication yes
ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
clientalivecountmax 3
clientaliveinterval 200
fipsmode yes
gatewayports no
hostbasedauthentication no
hostkeyalgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512
ignorerhosts yes
kexalgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
loglevel info
macs hmac-sha2-256,hmac-sha2-512
maxstartups 10:30:100
permitrootlogin yes
permittunnel no
permituserenvironment no
printmotd yes
rekeylimit 1G, 1H
syslogfacility auth
tcpkeepalive yes
usepam yes
x11forwarding no
subsystem sftp /usr/lib/vmware/openssh/bin/sftp-server -f LOCAL5 -l INFO
strictmodes yes
34  行passwordauthentication yes
permitemptypasswords no
hostkey /etc/ssh/ssh_host_rsa_key
hostkey /etc/ssh/ssh_host_ecdsa_key
compression no
authorizedkeysfile /etc/ssh/keys-%u/authorized_keys

请登录后发表评论

    • vee的头像-VUM星球钻石会员veelove徽章-原创达人-VUM星球等级-LV10-VUM星球超级版主0
        • vee的头像-VUM星球钻石会员veelove徽章-原创达人-VUM星球等级-LV10-VUM星球超级版主0
            • vee的头像-VUM星球钻石会员veelove徽章-原创达人-VUM星球等级-LV10-VUM星球超级版主0