Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-16-2004, 01:23 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Distribution: slackware 9.1
Posts: 2
Rep:
|
scp :copy file from one remote comp to another
i'm using scp with ssh2, and using the the following syntax for scp
Code:
scp user1@host1:file1 user2@host2:file1
but it does not work.
note that when using relative paths in any one of the arguments, then it works perfectly, but then its just a remote comp to our comp,or the other way round.
please help.
|
|
|
|
06-16-2004, 01:32 AM
|
#2
|
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
if you are copying from your system to a remote system
scp <path to local file> user@remotehost:<destination directory>
if you are copying from a remote system
scp user@remotehost:<path to source file> <destination directory>
remote system to another remotesystem e.g.
scp user1@remotehost1:<sourcefile> user2@remotehost2:<destination>
does not work with with password... not sure if it can work using keys.
|
|
|
|
06-16-2004, 01:38 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Distribution: slackware 9.1
Posts: 2
Original Poster
Rep:
|
thanks for the quick reply. but could you please be more specific.
relative pathnames work, from remote host to current host, and vice versa.
we are using the third syntax, remote to remote, but it does not seem to be working.
we've tried a lot, but nothing seems to be working. as for password, we've tried using .shosts and such, but they don't offer any solution as well.
|
|
|
|
06-16-2004, 02:04 AM
|
#4
|
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
|
|
|
|
06-16-2004, 02:31 AM
|
#5
|
|
Member
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 509
Rep:
|
local to remote:
scp file user@remotehost:/path/filename
remote to local:
scp user@remotehost:/path/filename /localpath
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|