LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-27-2010, 07:08 PM   #1
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Rep: Reputation: 41
sending a file from one computer to another by command line


I've got a Debian Squeeze computer on which the graphics have packed up, but the terminal in single user mode work perfectly fine.

There are a few files on this Debian computer that I want to transfer off, to a networked computer, but I have no idea how to do this.

The destination computer is a freshly re-setup Mandriva install, without (as yet) samba. I don't think it's necessary though. The Mandriva install works fine, has graphics, etc, but can't see the Debian Squeeze computer on the network, possibly because it's in single user mode, thus prompting the problem of how to transfer the files, using only a command line.
 
Old 01-27-2010, 07:34 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Sorry, put in a load of bollocks and cannot work out how to delete post.

Last edited by lugoteehalt; 01-27-2010 at 07:36 PM.
 
Old 01-27-2010, 07:52 PM   #3
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Have you tried using scp?

Regards,

Alunduil
 
Old 01-27-2010, 07:57 PM   #4
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 472

Original Poster
Rep: Reputation: 41
No, but that might be because I have never heard of scp before, nor do I know how to use it. Sorry.
 
Old 01-27-2010, 08:03 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,091

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you are running single use mode it is likely you don't have a network connection, so all attempts are void by definition.

If you have a network connection, make sure you can login with ssh on the destination computer. That is only for test, you can close that ssh connection.

for file copying do:
scp /path/to/local/file your.destination.host:/path/to/remote/file

Instead of your.destination.host you can use the IP address directly.

jlinkels
 
Old 01-27-2010, 08:05 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You can start up the network from single user mode if necessary for the transfer.

Regards,

Alunduil
 
Old 01-27-2010, 08:19 PM   #7
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Rep: Reputation: 17
when in sigle user mode,
try:
Code:
$init 3
this will bring up the network,
then log in and do:

Code:
$ping remotebox
where remotebox is the IP address or name of your remote computer
if that is replying, all is fine and you can type:

Code:
$ssh remotebox
you might be prompted for "yes/no" if you establish an ssh connect
for the first time. Simply answer "y".
Key in the password and you should be connected to your target.

pls let us know if this worked for you, if not you will have to
get onto the "remotebox" and "enable" ssh.

Last edited by phlyer; 01-27-2010 at 08:25 PM. Reason: fixed the code tag
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail from command line Geert86 Linux - Server 10 11-30-2009 12:04 PM
command-line email sending ixion Linux - Software 9 08-01-2008 06:46 AM
Sending an attachment from a command line RonnyNussbaum Linux - Software 12 06-04-2007 11:47 AM
Sending mail from command line matiasquestions Linux - Software 5 01-22-2006 11:51 AM
Sending Email's from command line jlaruffa Linux - Newbie 0 06-04-2003 03:31 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration