Bash SSH command cheatsheet
SSH into a remote server.
MY_USERNAME=root # Root user is bad! For educational purposes only.
MY_HOST=192.168.1.100 # Change this to the remote host IP
ssh $MY_USERNAME@$MY_HOST
Copy a file from local host to remote host.
INPUT_FILE_PATH=/Users/me/Code/out/my-project # Drag a file into Terminal after the =
OUTPUT_FILE_PATH=/home/myusername/my-project # Do `echo $(pwd)` while SSH'd into the remote host and cd'ed into the desired folder, to find the absolute path
scp $INPUT_FILE_PATH $MY_USERNAME@$MY_HOST:$OUTPUT_FILE_PATH;