Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
from server:
scp /home/user1/test.txt user@client:/home/user2/
(where "user" on the client machine has write access to /home/user2 and current working user on server machine has read access to /home/user1/test.txt)
from client:
scp user@server:/home/user1/test.txt /home/user2/
(where "user" on the server machine has read access to test.txt in /home/user1 and current working user on client machine has write access to /home/user2)
here is a link that might help additional questions.
OBTW your question for some reason shed light on my understanding Thank you, THANK YOU. Im a happier person now.SSH tips and tricks
All openssh packages are installed. I can access and work on the remote system with ssh but the only problem is scp command to transfer files. Please help.
Originally posted by filsed All openssh packages are installed. I can access and work on the remote system with ssh but the only problem is scp command to transfer files. Please help.
I think you missed Noerr's point. The scp program requires ssh (or an ssh-compatible program) to actually set up the secure connection. The path to ssh is hard-coded into the scp binary, usually "/usr/bin/ssh". You can check where scp thinks ssh lives by the command sequence: "strings scp | grep ssh".
If your ssh binary is not either located in the place scp expects it ("/usr/bin" or symbolically-linked in "/usr/bin"), scp cannot find it.
You can create a link to the ssh binary in /usr/bin or call scp like: "scp -S /path/to/ssh/binary other-options". The "-S" switch overrides the hard-coded ssh binary location with the one you specify.
If you are unsure as to where the ssh binary is installed, try "which ssh".
Thanks for help kill-hup. Problem solved, it was my stupid mistake - I had everything installed on my local machine but one package (openssh-clients) was missing on my server. But there is another problem. When I finally try to copy a file from server to local PC than it asks for remote user's password (that's allright) but after that it does nothing. You know, no transfering info or something like that. It looks like the command is running but that's all. I don't know where could be a problem. Please help again if you can.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.