When I log to ServerA with ssh, I have ping to ServerB.
If I had a sudo privilege on ServerA I would able to do this command:

sudo mount ServerB:/pathInServerB localPathServerA

I want to be able to mount directly to local machine from ServerB through ServerA.

  1. I cannot ssh to ServerB. (so sshfs with tunnel will not work in this case, I guess).
  2. I can log in with ssh to serverA.
  3. I don't have sudo privilege on server A.
  4. I do have sudo privilege on local machine.

I already do the following:


sudo ssh -f userName@ServerA -L 111:ServerB:111 -L 2049:ServerB:2049 -L 1110:ServerB:1110 -L 4045:ServerB:4045 -N
sudo mount -o tcp localhost:/PathInServerB localPath

I didn't succeeded.

How I do it?

  • ask sysadmin of serverA or serverB. Dec 3, 2016 at 10:22
  • why sys admins? I sure I can remote mount with tunnel without them.
    – Tal
    Dec 3, 2016 at 10:26
  • If you are talking nfs mount, they're default refuses any connection from ports above > 1024, and without root you cannot bind lower. Dec 3, 2016 at 11:37
  • I have root on local
    – Tal
    Dec 3, 2016 at 11:57
  • 1
    be happy then... Dec 3, 2016 at 12:03


You must log in to answer this question.

Browse other questions tagged .