Data transfer from one Linux machine to another with FTP or scp
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.
Data transfer from one Linux machine to another with FTP or scp
Hello everybody,
I am an absolute newbie trying to solve an annoying problem.
I have a win 2000 laptop that crashed a couple of days ago before I could save some important data.
I imagined two scenarios to recover my data:
Scenario 1- Boot the laptop with Knoppix and burn the data on CD-R.
Booting with Knoppix works fine and I can see my hda1 on the desktop but I don't know how to get the data to CD-R.
BTW, my CD burner is a Micro Solutions parallel port Backpack.
2- Transfer the data via FTP or using scp to another Linux machine and find a way to burn it on CD-R from there.
I had an old unused 400 MHz desktop and I installed Mandrake 9.0 on it.
I connected the two machines (the laptop under Knoppix and the desktop under Mandrake 9.0) via an Ethernet crossover cable and set the IP addresses, the netmask and the gateway address.
I can ping between the two machines but when I try to use an FTP command or the scp command I get the message "connection refused".
Here is a sample of the scp command I tried from the laptop, in the directory where the *.doc files reside:
scp *.doc 192.168.0.3:/home/emmanuel
192.168.0.3 is the address of the destination machine and /home/emmanuel the destination directory
Error message: ssh: connect to address 192.168.0.3 port 22: connection refused
I suspect I am missing some kind of authentification between the machines.
Any help with one of theses scenarios will be greatly appreciated.
Do you have any firewall rules set on linux? If so then try removing them then the copy again:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
Sorry for this long pause but it was for a good cause.
First, I did not know I had to have an FTP server or sshd running.
Taking heed to both your posts, I ran out and bought "Linux Administration, A Beginner's guide". No particular preference here, only the word "Beginner" and a quick browse in the TOC guided my choice.
After reading these chapters and installing ProFTPD, I could do my transfers.
I learnt a few things in the process, above all how friendly and helpful the Linux community is, and last, but not least, that from now on I will commit my important files only to a Linux machine properly set up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.