Closed steveoriol closed 2 years ago
How would the same be accomplished using an sshfs
command?
Perhaps sshfs -o ssh_command='ssh -C user@gateway.com -t ssh user@cible.com'
?
I think your command just calls the ssh
client program on gateway.com
.
Perhaps you need to use a jump host instead (-J
)?
I wonder if defining something like this in ~/.ssh/config
would work for sshfs
:
Host cible.com
User user
ProxyJump gateway.com
Host gateway.com
User user
You can then probably just say you'd like to connect to cibble.com
(via sshfs
or SftpMan, which will call sshfs
anyway) and you'd have that connection jump through gateway.com
automatically.
@spantaleev , Merci !
Thank you, why ~/.ssh/config
file, it works perfectly :-)
the same way you can do it with the following command:
ssh -C user@gateway.com -t ssh user@cible.com