how to ssh from remote to local code example
Example 1: scp server to local
scp [email protected]:/remote/file.txt /local/directory
Example 2: scp local to remote
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory
scp [email protected]:/remote/file.txt /local/directory
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory