Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My current situation is that I have my personal laptop, and I there is a workstation I need to be able to mount. But before I can get to that workstation, I first need to ssh into the gate of the network.

So basically, if I only want to connect to the workstation I need to do this:

ssh username@gate

$ ssh username@workstation

Is there a way for me to mount the workstation directly into ubuntu? So I can work on my documents on the workstation?

Any ideas on how to do this?

share|improve this question

1 Answer 1

This should be possible with SSH-forwarding. E.g.

$ ssh -f -L 2200:username@workstation:22 username@gate -N
$ sshfs -p 2200 localhost:/path/to/remote/dir /path/to/mount/point

However, the administrator of your gateway computer might have disabled SSH forwarding, in which case I think you're out of luck with this option.

Another possibility is to use SSH-bouncing. IMHO it is a bit more involved and requires you to possibly install netcat on the gateway machine.

share|improve this answer
    
Well, I tried the first option, but I get channel 2: open failed: administratively prohibited: open failed read: Connection reset by peer Does this mean the SSH forwarding is disabled? I also have no admin rights on the gate box, so that's no option... –  user57197 Apr 27 '12 at 13:11
    
Yep, the admin was careful and closed that loophole. –  Michael Wild Apr 27 '12 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.