Advertisement
Guest User

Untitled

a guest
Nov 21st, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. sudo dnf install -y xclip
  2.  
  3. git config --global user.name "Ashesh Kumar Singh"
  4. git config --global user.email user501254@gmail.com
  5.  
  6. ssh-keygen -t rsa -f ~/.ssh/git_rsa -C "user501254@gmail.com" -P ''
  7. xclip -sel clip < ~/.ssh/git_rsa.pub
  8.  
  9. cat >> ~/.ssh/config <<EOL
  10. #Github (default)
  11. Host gh
  12. HostName github.com
  13. User git
  14. IdentityFile ~/.ssh/git_rsa
  15. #Bitbucket (secondary)
  16. Host bb
  17. HostName bitbucket.org
  18. User git
  19. IdentityFile ~/.ssh/git_rsa
  20. EOL
  21.  
  22. chown $USER ~/.ssh/config
  23. chmod 644 ~/.ssh/config
  24.  
  25. ssh-add ~/.ssh/git_rsa
  26.  
  27. ssh -T gh
  28. ssh -T bb
  29.  
  30. cat >> ~/.bashrcs <<EOL
  31. alias BB='cd ~/Documents/00_Bitbucket'
  32. alias GH='cd ~/Documents/00_GitHub'
  33. EOL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement