虽然是一个简单的问题,但我已经搜索了几天没有成功。
M = My machine
J = Jump Host
S = Server
Jump Host has my public key on authorized_keys.
Server has J's public key on authorized_keys.
Allowed connections (due to key authentication):
M -> J
J -> S
Run Code Online (Sandbox Code Playgroud)
我怎么可能从我的机器 ssh 进入 S?
我目前的配置是:
host jump
user root
HostName x.x.x.x
host server
user root
HostName x.x.x.x
port 22
ForwardAgent no
ProxyCommand ssh jump -W %h:%p
Run Code Online (Sandbox Code Playgroud)
当它尝试使用 M 的密钥登录时它不起作用。
这是 ssh 日志
debug1: Host 'x.x.x.x' is known and matches the ECDSA …Run Code Online (Sandbox Code Playgroud)