1. Connection
ssh usr_name@remote_server -p port_num
2. SSH Keys
In order to authenticate user so that you don’t need to reenter your password every time, TRY THIS!
Step1 Key Generation
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519
Step2 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