Secure Shell Managing remote files through ssh Moving files between servers through ssh


Example

One way to move files between servers is by using the scp command. Secure copy command utilizes ssh to transfer data. The simples example for copying a file from local to remote server is

scp /localdir/localfile user@xxx.xxx.xxx.xxx:/remotedir/remotefile

Similarily, to copy file from a remote to local server would be

scp user@xxx.xxx.xxx.xxx:/remotedir/remotefile /localdir/localfile