You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  • After SSH to the server, switch to the web user. 
  • Generate the SSH key pair:
$ ssh-keygen -t rsa -b 4096 -C "lionetxue@gmail.com"
  • 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

 

 

  • No labels