scp

My Note

  • Remote –> Local
bash
scp username@from_host:file.txt /local/dir/
  • Local –> Remote
bash
scp file.txt username@to_host:/remote/dir/
  • Copy directory from remote –> Local
bash
scp -r username@from_host:/remote/dir/ /local/dir/