LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-03-2003, 03:26 PM   #1
faucon
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
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.

Thanks in advance.


Emmanuel
 
Old 09-03-2003, 03:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

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
 
Old 09-04-2003, 07:27 AM   #3
faucon
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your help, David.

I tried theses commands on both machines and the transfer stills does not work. I'll keep searching.

Thanks again.


Emmanuel
 
Old 09-04-2003, 09:14 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,965

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Check to make sure a ftp server is running.
 
Old 09-04-2003, 05:09 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Or sshd in the case of using scp.
 
Old 09-10-2003, 09:05 AM   #6
faucon
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Hi David and Michael,

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.

Thanks again.


Emmanuel
 
Old 09-10-2003, 02:37 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Good to see you got everything working as you wanted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SCP: Copy file from remote linux server onto a windows machine? Tony Empire Linux - Newbie 21 09-22-2015 11:18 PM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 01:23 PM
cannot transfer (FTP) 10GB file, also scp dont work freebies Linux - Software 2 02-25-2005 01:38 AM
Best way to transfer data from Windows to Linux? jcmaco Mandriva 1 11-07-2003 09:51 PM
FTP Data transfer yaliou Linux - Networking 4 06-28-2003 08:37 AM


All times are GMT -5. The time now is 02:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration