相关疑难解决方法(0)

没有代理转发的 SSH 跳转主机

虽然是一个简单的问题,但我已经搜索了几天没有成功。

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)

authentication ssh openssh agent server

4
推荐指数
1
解决办法
7021
查看次数

标签 统计

agent ×1

authentication ×1

openssh ×1

server ×1

ssh ×1