LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2010, 03:31 AM   #1
dair-targ
LQ Newbie
 
Registered: Mar 2010
Location: St. Petersburg, Russia
Posts: 3

Rep: Reputation: 0
Question sshfs tunnelling


I have a local computer (local), and remote computer (remote) behind of remote server (server). Also, I have user access to all of these 3 machines.
Now, I want mount some directory, located at remote, to my local mount-point via sshfs. How should I setup my local sshfs and what should be done on server to make this mounting?
I'm stuck with ssh tunneling because the default method for tunneling requires root access while WinSCP somehow could do this with only user access (the tunnel server could be configured there in 'tunnel' panel).

Last edited by dair-targ; 03-28-2010 at 03:32 AM. Reason: ssh sshfs
 
Old 03-28-2010, 04:59 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What in doing 'mkdir ${LOCALMOUNTPOINT} && sshfs ${USER}@${REMOTEHOST}:${REMOTEMOUNTPOINT} -o ${SSHFSOPTIONS} ${LOCALMOUNTPOINT}' doesn't work for you?
 
Old 03-28-2010, 05:02 AM   #3
dair-targ
LQ Newbie
 
Registered: Mar 2010
Location: St. Petersburg, Russia
Posts: 3

Original Poster
Rep: Reputation: 0
Good. But I need not a straight connection but a connection via tunnel. So, I need right SSHFSOPTIONS and LOCALMOUNTPOINT and I'm asking for help me to find them.
 
Old 03-28-2010, 06:52 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You don't show anything you've tried yourself so I'll just point you to http://souptonuts.sourceforge.net/sshtips.htm.
 
Old 03-28-2010, 07:18 AM   #5
atp
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
I'm not sure where tunneling comes into this, so maybe I've misunderstood the question.

Using sshfs should in general be straight forward, without any need for root permission.

>So, I need right SSHFSOPTIONS and LOCALMOUNTPOINT and I'm asking for help me to find them.
Possible you don't need to use any options. And mountpoint is any (preferably empty) directory you choose.

For example, the very simplest:
mkdir remote
sshfs myuser@myserver: remote

To unmount
fusermount -u remote
 
Old 03-28-2010, 10:33 AM   #6
dair-targ
LQ Newbie
 
Registered: Mar 2010
Location: St. Petersburg, Russia
Posts: 3

Original Poster
Rep: Reputation: 0
urSpawn, thank you very much! It's exactly what I want.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh tunnelling through a firewall statistic Linux - Networking 4 05-03-2009 08:07 PM
Tunnelling through a Linux server Yalla-One Linux - Networking 5 03-08-2009 08:40 AM
SSH Tunnelling Only Server humbletech99 Linux - Security 1 08-03-2007 08:33 PM
Tunnelling!! vishamr2000 Linux - Networking 1 07-03-2007 02:16 AM
tightvnc using ssh tunnelling curmudgeon42 Linux - Software 1 08-18-2004 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration