- After SSH to the server, switch to the web user.
- Generate the SSH key pair:
$ ssh-keygen -t rsa -b 4096 -C "lx58@cornell.edu"
- Copy the public key onto GitHub account setting -> SSH key.
$ cat /home/user/.ssh/id_rsa_github.pub
- Then enable the private key on Media3 by adding these lines to .bashrc file:
# Add SSH token for Github eval $(ssh-agent -s) ssh-add ~/.ssh/id_rsa_github
Related articles