SCP

this method requires ssh user credentials on the remote host

root@oco:~$ scp linenum.sh user@remotehost:/tmp/linenum.sh
 user@remotehost's password: *********
 linenum.sh
 
 * linenum.sh is on the attacking machine 
    - this "uploads" the file named linenum.sh on the target machine

Last updated