I’m trying to access my work computer from home. We are supposed to SSH into a server, say ssh.company.com and from there ssh into an xhost to to work, say xhost04.company.com. xhost04 is not directly accessible. How can I browse files on xhost04 from my home computer using nautilus (in ubuntu) with SSHFS.
To access the SSH host I would use:
ssh -t -X ssh.company.com ssh -X internalserver
How do I modify this for SSHFS?
Without the double tunneling I have the following:sshfs user@ssh.company.com: ~/far_projects
Answer
Install nc
on ssh.company.com, and set up a stanza in ~/.ssh/config
as follows:
Host internalserver
ProxyCommand ssh user@ssh.company.com nc internalserver 22
Then connect to internalserver
with the user of your choice.
Attribution
Source : Link , Question Author : D W , Answer Author : Ignacio Vazquez-Abrams