小编ely*_*ase的帖子

ss/config 文件不工作,但 ssh 工作

我正在尝试通过中间登录final_hostfrom ,即:localhosthop

localhost -> hop -> final_host
Run Code Online (Sandbox Code Playgroud)

这有效:

localhost:~$ ssh -t user@hop "ssh user@final_host"
Run Code Online (Sandbox Code Playgroud)

这也有效:

localhost:~$ ssh user@hop
hop:~$ ssh user@final_host
finalhost:~$
Run Code Online (Sandbox Code Playgroud)

但这不会:

localhost:~$ ssh -J user@hop_ip "ssh user@final_host_ip" -vvv
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Setting implicit ProxyCommand from ProxyJump: ssh -l user -vvv -W '[%h]:%p' hop_ip
debug1: Executing proxy command: exec ssh -l user -vvv -W '[final_host_ip]:22' hop_ip
debug1: key_load_public: No such file …
Run Code Online (Sandbox Code Playgroud)

ssh

6
推荐指数
1
解决办法
3519
查看次数

标签 统计

ssh ×1