Tuesday, June 17, 2014

How To Transfer Files between two Debian/Linux systems

How To Transfer Files between two Debian/Linux systems

OpenSSH is a well known program which allows you to login to a host remotely, and run commands etc.

It also comes with a simple file transfer system which can be used to transfer files securely.

SCP is the command to use. You can either transfer files to the remote machine from your local one, or vice versa.

Usage is Simple :

scp file-to-send user@host:/patch/to/place/file

For example to copy the interfaces files from your local machine (ariyano to a remote server called 'arbaaz' you could use:

ariyano@ariyano:~$ scp /etc/network/interfaces ariyano@arbaaz:
ariyano@arbaaz's password:

As no destination directory was specified the file will be transferred to your home directory upon the remote machine.

If you wish to transfer a lot of tiles you can copy a directory recurisvely, with the -r flag.
-----------------------------------------------------------------

WinSCP is a fantastic windows application you could use to drag & drop files over machines.

No comments:

Post a Comment