无法在 Windows 上通过代理命令 sshfs 连接到服务器

无法在 Windows 上通过代理命令 sshfs 连接到服务器

我正在尝试通过 sshfs-win 连接以通过 jumphost 安装驱动器。我通常可以通过 ssh 连接,但通过 sshfs-win 调用时会失败。

另外,我正常情况下可以安装跳转主机,但不能安装内部服务器驱动器。

PS C:\Program Files\SSHFS-Win\bin> .\sshfs-win.exe cmd krakenss2:/ Y: -odebug -ologlevel=debug3
SSHFS version 3.5.2
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug3> <-2> <krakenss2> <-s> <sftp>
debug1: Reading configuration data /cygdrive/c/Users/qqqq/.ssh/config
debug1: /cygdrive/c/Users/qqqq/.ssh/config line 29: Applying options for krakenss2
debug1: Executing proxy command: exec "ssh -W int-dev.node:22 jumphost.com -l qqqq -p443"
debug1: identity file C:\\Users\\qqqq\\.ssh\\key type 0
debug1: identity file C:\\Users\\qqqq\\.ssh\\key-cert type -1
/bin/shdebug1: Local version string SSH-2.0-OpenSSH_8.3
: No such file or directory
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
read: Connection reset by peer
PS C:\Program Files\SSHFS-Win\bin>

但连接到jumphost是可以的。我感觉问题出在执行proxyjump命令的时候。

PS C:\Program Files\SSHFS-Win\bin> .\sshfs-win.exe cmd jump:/ Y: -odebug -ologlevel=debug3
SSHFS version 3.5.2
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug3> <-2> <jump> <-s> <sftp>
debug1: Reading configuration data /cygdrive/c/Users/qqqq/.ssh/config
debug1: /cygdrive/c/Users/qqqq/.ssh/config line 1: Applying options for jump
debug2: resolving "jumphost.com" port 443
debug2: ssh_connect_direct
debug1: Connecting to jumphost.com [53] port 443.
debug1: Connection established.
debug1: identity file C:\\Users\\qqqq\\.ssh\\key type 0
debug1: identity file C:\\Users\\qqqq\\.ssh\\key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to jumphost.com:443 as 'qqq'
debug3: put_host_port: [jumphost.com]:443
debug3: hostkeys_foreach: reading file "/cygdrive/c/Users/qqqq/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /cygdrive/c/Users/qqqq/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from [jumphost.com]:443
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521

相关内容