ssh usr_name@remote_server -p port_num2. SSH Keys
In order to authenticate user so that you don’t need to reenter your password every time, TRY THIS!
Step1 Key Generationssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519Step2 Key Baced Authentication
cat .ssh/id_ed25519.pub | ssh usr_name@remote_server 'cat >> ~/.ssh/authorized_keys'3. Copying Files
ssh + tee (using STDIN)
cat localfile | ssh remote_server tee serverfile
scp
scp path/to/local_file remote_server:path/to/remote_file


![[Shell Tools] - Remote Machines (SSH) [Shell Tools] - Remote Machines (SSH)](http://www.mshxw.com/aiimages/31/748009.png)
