SSH - danwu960/MyDocument GitHub Wiki
Linux server:
https://www.ssh.com/academy/ssh/keygen
https://www.ssh.com/academy/ssh/public-key-authentication
Change the configuration of ssh on the server: go to /etc/ssh/sshd_config
On the server side: restart the ssh server sudo systemctl restart ssh
Access right to .ssh and keys
- .ssh directory: 700 (drwx------)
- public key (.pub file): 600 (-rw-------)
- private key (id_rsa): 600 (-rw-------)
add key to ssh-agent
- ssh-add the-key
- restart ssh service
#Generate self-signed certificate
#use ssh map to the browser of the remote server
- ssh -L 8080:localhost:[port] [user]@[server]