LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02:56 AM   #1
riahc3
Member
 
Registered: Dec 2002
Posts: 223

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, 03:00 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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 03:02 AM.
 
Old 08-30-2012, 03:20 AM   #3
riahc3
Member
 
Registered: Dec 2002
Posts: 223

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, 04:11 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 05:00 AM   #5
riahc3
Member
 
Registered: Dec 2002
Posts: 223

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, 07:46 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 02:28 AM   #7
riahc3
Member
 
Registered: Dec 2002
Posts: 223

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, 04:15 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration