Linux下,SSH登录时取消密钥登录
一般都是增加密钥登录,这个是取消密钥登录。
登录VPS管理后台,登录Console,用root用户和密码登录。
vi /etc/ssh/sshd_config
找到 RSAAuthentication、PubkeyAuthentication 这两行,把后面的 yes 改为 no,然后保存。
重启SSH服务
/etc/init.d/sshd restart
这样就可以使用SSH客户端,使用用户名和密码登录了。
一般都是增加密钥登录,这个是取消密钥登录。
登录VPS管理后台,登录Console,用root用户和密码登录。
vi /etc/ssh/sshd_config
找到 RSAAuthentication、PubkeyAuthentication 这两行,把后面的 yes 改为 no,然后保存。
重启SSH服务
/etc/init.d/sshd restart
这样就可以使用SSH客户端,使用用户名和密码登录了。