use scp to transfer a file code example Example: scp send file scp ./file.txt remote_username@remote_ip:/remote/directory