且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SSH登录服务器之间仍然要求密码,为什么?

更新时间:2023-12-05 14:35:10

除了以详细模式运行客户端之外,在调试模式下启动一个新的服务器实例另一个端口:

In addition to running the client in verbose mode, start a new server instance in debug mode on another port:

服务器2作为根用户:

# /usr/sbin/sshd -p 9999 -d

然后以详细模式连接到该服务器端口:

Then connect in verbose mode to that server on the same port:

服务器1作为deploy

server-1 as deploy

$ ssh -vvv -p 9999 server-2

9/10它与权限相关。

9/10 it has to do with permissions.