Linux - NewbieThis 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
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.
Just to further that, I remembering having a rough time figuring out how to use scp at first. The man should explain it pretty well, but even then, it can seem a little geek-speak-ish, try wading through it, but here's an example of copying a file from inside a lan with private ip's 192.168.1.50 and 192.168.1.25 and I'm copying a file from the computer I'm on that has the IP 192.168.1.25:
scp 192.168.1.25:/home/files/file.avi 192.168.1.50:/home/files/file.avi
Which if you pull out all the 'gugu' then you can actually see the cp command:
cp /home/files/file.avi /home/files/file.avi
Obviously that wouldn't work because it's the same box, however, it does of course using scp because of the 2 different boxes.
could you be more specific?
after i ssh -l root <host> and get to the prompt.. how would i move /home/me/file.ext from my computer to /home/me/ on the target machine?
<edit>oops.. didn't see that previous post in time
This is cool! I didn't know a file transfer could be so easy. Is there a limitation to the size? For instance, I just loaded up another PC here with Linux and I want to move all my data over to it. Would I be able to tar the profile data that I want and move it across using SSH? Potentially some of the file (email) could be over 100MB...
i noticed that too early on.. it seemed to go away after i disabled RSA authentication in sshd settings.. apparently when using RSA you have to send along a seed with a password.. or something.. i don't fully understand it.. some sort of security function.. something to do with 'key' files too
Thanks, I'll check that out. I was able to get it work finally by using sftp which was much easier (for me) and achieved the same results. Still - this is a feature that I hadn't considered that I could do with Linux - I'm very impressed!
Originally posted by silmaril8n This is cool! I didn't know a file transfer could be so easy. Is there a limitation to the size? For instance, I just loaded up another PC here with Linux and I want to move all my data over to it. Would I be able to tar the profile data that I want and move it across using SSH? Potentially some of the file (email) could be over 100MB...
AFAIK there is no limit on single file size wrt to ssh or scp (which IIRC is simply cp wrapped up in ssh). Your file system would be the only thing puting a damper on your fun, but 100MB shouldn't be a problem with that. You really wouldn't even have to tar the profile data, you could simply copy it over recursively using the -a or similar switch...
I just completed a "scp -rpv" file copy and it skipped over the hidden files. Since this is for a user transfer to a newly built linux box, I need all of the files transferred, including hidden. I didn't see a switch to enable this in the man file. Does anyone know if it is possible to get these files, too?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.