LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2012, 03:56 AM   #1
riahc3
Member
 
Registered: Dec 2002
Posts: 124

Rep: Reputation: 1
Create symbolic link to a FTP/SCP destination


Hello

Im trying to create a symbolic link to a FTP/SCP destination. Basically I create the link in say /home/username/folder and I want that to point to ftp://192.168.100.123/folder so everything that I store in /home/username/folder is actually stored in ftp://192.168.100.123/folder

How do I do this?

Thank you
 
Old 08-30-2012, 04:00 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Don't know.
I would mount the remote folder by sshfs onto the target folder in your home dir.
Maybe there is a similar thing for FTP.

Last edited by descendant_command; 08-30-2012 at 04:02 AM.
 
Old 08-30-2012, 04:20 AM   #3
riahc3
Member
 
Registered: Dec 2002
Posts: 124

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by descendant_command View Post
Don't know.
I would mount the remote folder by sshfs onto the target folder in your home dir.
Maybe there is a similar thing for FTP.
running sshfs (just typing the command so it givs me a error/help) gives me this:


sshfs: can't load library 'libglib-2.0.so.0'

?
 
Old 08-30-2012, 05:11 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
That wouldn't be a symbolic link, but a URI. You need to locate and install the dependency. Which distro are you using? There should be a libglib-2.0 package available. How did you install sshfs and not have the dependency added?
 
Old 08-30-2012, 06:00 AM   #5
riahc3
Member
 
Registered: Dec 2002
Posts: 124

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jschiwal View Post
That wouldn't be a symbolic link, but a URI. You need to locate and install the dependency. Which distro are you using? There should be a libglib-2.0 package available. How did you install sshfs and not have the dependency added?
Im not using any distro, its just a BusyBox terminal because it is a embedded device.

Yes, Im curious about that as well; sshfs installed and the library isnt there....

Any ideas on how to do this? Even if it isnt a symbolic link. I need to basically create (something) in linux that when placed something in there it points to a FTP/SCP location.
 
Old 08-30-2012, 08:46 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I think(?) you're confusing copying tools eg ftp, scp with mounting eg nfs, sshfs etc.
I don't believe you can symlink in a copying scenario; it doesn't make sense.
Those tools have to be invoked at the time(!) to copy files to another system. The remote file systems are not mounted on your local system, unlike when using nfs, sshfs etc.
 
Old 08-31-2012, 03:28 AM   #7
riahc3
Member
 
Registered: Dec 2002
Posts: 124

Original Poster
Rep: Reputation: 1
Maybe with some more information you guys can give me some help and understand better


To keep things simple: I have a PC (PC 1 Windows) with the IP of 192.168.100.123 connected to a router (running Linux) which has two ports. Port 1 has a IP of 192.168.100.1 so they can see each other because they are on the same range. Now Port 2 has a ip of 10.10.10.1 and it is connected to another PC (PC 2 Windows) with a ip of 10.10.10.123

If I SSH into the router, the router can see (ping) both PCs. Its just the PCs cannot see each other.

What I want to do is from PC 1 access/send/transfer/etc information to PC 2. The router is very limited. Changing IPs is impossible in this case. There are no other devices, just these 3.
 
Old 08-31-2012, 05:15 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In that case you need to enable forwarding in the router to start with; for that we'd need to know the make/model and what OS etc it is running.
You'd also have to set up a gateway route on PC1 to use the gateway 192.168.100.1 to reach anything else, inc PC2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Create a symbolic link that points to an ftp location thebombzen Linux - Software 2 07-01-2011 05:02 PM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08:40 AM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 11:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 12:41 PM
how do I create a symbolic link? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 02:28 PM


All times are GMT -5. The time now is 10:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration