Guest User

Untitled

a guest
Jan 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. # 1. Генерируем пару ключей
  2.  
  3. ssh-keygen -t rsa -f ~/.ssh/id_rsa.bitbucket
  4. ssh-keygen -t rsa -f ~/.ssh/id_rsa.git
  5.  
  6. # 2. Передаем в ssh-agent информацию о ключах
  7.  
  8. ssh-add ~/.ssh/id_rsa.bitbucket
  9. ssh-add ~/.ssh/id_rsa.git
  10.  
  11. # 3. Создаем файл конфигурации ssh-подключений
  12.  
  13. vim ~/.ssh/config
  14.  
  15. # Host bitbucket.org
  16. # User git
  17. # Hostname bitbucket.org
  18. # PreferredAuthentications publickey
  19. # IdentitiesOnly yes
  20. # IdentityFile ~/.ssh/id_rsa.bitbucket
  21.  
  22. # Host github.com
  23. # User git
  24. # Hostname github.com
  25. # PreferredAuthentications publickey
  26. # IdentitiesOnly yes
  27. # IdentityFile ~/.ssh/id_rsa.git
Add Comment
Please, Sign In to add comment