LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   sending a file from one computer to another by command line (http://www.linuxquestions.org/questions/linux-general-1/sending-a-file-from-one-computer-to-another-by-command-line-785197/)

TheStarLion 01-27-2010 07:08 PM

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.

lugoteehalt 01-27-2010 07:34 PM

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

alunduil 01-27-2010 07:52 PM

Have you tried using scp?

Regards,

Alunduil

TheStarLion 01-27-2010 07:57 PM

No, but that might be because I have never heard of scp before, nor do I know how to use it. Sorry.

jlinkels 01-27-2010 08:03 PM

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

alunduil 01-27-2010 08:05 PM

You can start up the network from single user mode if necessary for the transfer.

Regards,

Alunduil

phlyer 01-27-2010 08:19 PM

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.


All times are GMT -5. The time now is 03:37 PM.