Advertisement
otku

SSH

Oct 6th, 2020 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. ssh-keygen -t rsa -C "otkuth@gmail.com" -f "id_otku"
  2.  
  3. ssh-keygen -t rsa -C "johnyang247@gmail.com" -f "id_yohnjang"
  4.  
  5. cat ~/.ssh/id_otku.pub
  6.  
  7. cat ~/.ssh/id_yohnjang.pub
  8.  
  9. ssh-add -l
  10.  
  11. eval "$(ssh-agent -s)"
  12.  
  13. ssh-add -D
  14.  
  15. ssh-add ~/.ssh/id_rsa
  16. Show email and username for local repository
  17.  
  18. git config user.name git config user.email
  19. Set email and username for local repository
  20.  
  21. git config user.name "otku" git config user.email "otkuth@gmail.com"
  22.  
  23. git clone git@github.com-otku:otku/repo_name.git
  24. Creating new repository
  25.  
  26. git init
  27.  
  28. git remote -v
  29.  
  30. git remote add origin git@github.com-otku:otku/repo_name.git
  31.  
  32. git remote set-url origin git@github.com-otku:otku/repo_name.git
  33. ~/.ssh/config
  34.  
  35. ` Host github.com-otku HostName github.com User git IdentityFile ~/.ssh/id_otku
  36.  
  37. Host github.com-yohnjang
  38. HostName github.com User git IdentityFile ~/.ssh/id_yohnjang `
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement