LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2010, 02:40 PM   #1
Drigo
Member
 
Registered: May 2009
Posts: 111

Rep: Reputation: 17
SSH GUI w/ Tunneling


So....I want to transfer files to a computer but for doing it, it takes a long time to set up tunneling a with the ssh command from terminal( ssh -P -N .... ). I need to transer files from MyPC ----> Network --> DestinationPC.

With WinSCP (Windows), I just set up tunneling, save my connection and thats it. Is there any like alternative for Linux? I tried gftp but I can't tunnel with it.
Thanks!
 
Old 08-25-2010, 02:51 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
If you need to transfer files, have you tried using SSHFS? All you need on your end is Fuse (and SSH of course) and all the other end needs is an SSH server.
 
Old 08-25-2010, 04:11 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Maybe see man scp if you want to do it from the command line ?

Alternatives:

With KDE desktop try fish://user@IP.OF.P.C in konqueror
With Gnome desktop try sftp://user@IP.OF.P.C in nautilus

All the above work well for me, but I have no win computers on my LAN. If you have win computers, you'll probably need to use samba.
 
Old 08-25-2010, 04:18 PM   #4
Drigo
Member
 
Registered: May 2009
Posts: 111

Original Poster
Rep: Reputation: 17
indienick,

Looks like Fuse is a good solution but there is no package for Ubuntu or apt-get install does not find it. thanks though


tredegar,
Thanks for your response. However, this will not work because I need to connect to a intermediate computer to reach the final cluster (computer). From MyPC to IntermediatePC to ClusterPC. So...basically two IPs. any other suggestions?
 
Old 08-25-2010, 08:30 PM   #5
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
apt-get install sshfs
 
Old 08-25-2010, 10:50 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by Drigo View Post
So....I want to transfer files to a computer but for doing it, it takes a long time to set up tunneling a with the ssh command from terminal( ssh -P -N .... ). I need to transer files from MyPC ----> Network --> DestinationPC.
I'm assuming that "Network" is some gateway machine that you have to log on to because there is no direct route from "MyPC" to "DestinationPC".

If this is the case you can make a tunnel:

Code:
MyPC> ssh -f -N -L56789:DestinationPC:22 Network
Now port 56789 on the localhost (MyPC) points to port 22 (default ssh port) on the the machine DestinationPC.

So to copy a file to DestinationPC you would now do:
Code:
MyPC> scp -P 56789 somefile.foo localhost:
Quote:
With WinSCP (Windows), I just set up tunneling, save my connection and thats it. Is there any like alternative for Linux? I tried gftp but I can't tunnel with it.
If you are doing this often you can put some entries in your .ssh/config to save all the repeated typing of flags and options.

Cheers,

Evo2.

Last edited by evo2; 08-25-2010 at 10:51 PM. Reason: typos
 
Old 08-27-2010, 09:54 AM   #7
Drigo
Member
 
Registered: May 2009
Posts: 111

Original Poster
Rep: Reputation: 17
evo2,
thanks for your reply. Well this is what I've been doing and yes the gateway idea is correct. But still, i think its a pain looking for folders from/to where i want to copy. The TAB button does not work when using scp as well....thats why i am trying to find a program similar to WinSCP.

indienick and estabroo,
I installed sshfs but I dont know how to use it. I tried the sshfs -h command but still doesnt make sense...
 
Old 08-27-2010, 10:24 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
After making the tunnel you can then use sshfs to mount the remote directory. Something like the following should work:

Code:
sshfs -P 56789 localhost:/some/dir/on/DestinationPC /mnt
ls /mnt
You may also need uid and gid options: post back if you have more questions.

Evo2.
 
  


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
More ssh tunneling mortalic Linux - Networking 4 02-25-2009 01:37 AM
Tunneling with ssh ssherman Linux - Networking 3 07-16-2007 02:13 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 12:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 10:43 AM
SSH Tunneling danny_beta_read Linux - Networking 0 06-10-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:42 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