using scp to copy files from a remote session code example
Example 1: scp to remote server
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: ssh command to put file from local to remote
scp file.txt [email protected]:/remote/directory