SCP (Secure Copy)
Copying file to host:
scp SourceFile user@host:directory/TargetFile
Copying file from host:
scp user@host:/directory/SourceFile TargetFile scp user@host:/directory/SourceFile TargetFolder
Note that if the remote host uses a port other than the default of 22, you can specify it in the command. For example, copying a file from host:
scp -P 2222 user@host:directory/SourceFile TargetFile
Comments