Skip to content

Instantly share code, notes, and snippets.

@Moln
Created March 29, 2017 10:35
Show Gist options
  • Select an option

  • Save Moln/3dfe968d115c3c47e27bb6adaa0f43e6 to your computer and use it in GitHub Desktop.

Select an option

Save Moln/3dfe968d115c3c47e27bb6adaa0f43e6 to your computer and use it in GitHub Desktop.
Git add ssh key
  1. ssh-keygen -t rsa -C "memo"
  2. 在 gitlab 中添加 ssk-key 内容为 .ssh/id_rsa.pub 文件内容
  3. id_rsa 文件是被改名的, 要在 .ssh/config 中添加指向说明

指向说明示例:

Host 192.168.150.162
RSAAuthentication yes
IdentityFile ~/.ssh/gitlab_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment