【iTools】配置 SSH for Github,Gitlab等

SSH (Secure SHell)is a cryptographic network protocol for operating network services securely over an unsecured network. Typical applications include remote command-line login and remote command execution.

Windows 配置

Step 1: Checking for existing SSH keys

  1. Open Git Bash
  2. Type ls -al ~/.ssh
  3. 如果提示 No such file or directory 说明没有建立过 SSH keys,可以第二步新建了
  4. 如果发现有 xxx.pub 文件,说明之前建立过。可以使用。

Step 2:Generating a new SSH key and adding it to the ssh-agent

  1. Open Git Bash
  2. Type ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  3. Type eval $(ssh-agent -s) to make sure ssh-agent is running
  4. Type ssh-add ~/.ssh/id_rsa to add the SSH key to ssh-agent.

Step 3: Add SSH public key to Github

  1. Type clip < ~/.ssh/id_rsa.pub to copy SSH key to clipboard
  2. Go to Gitbub -> Settings -> SSH & GPG Keys -> New SSH Keys, Name it and paste it.
  3. Type ssh -T git@github.com to connect, then type yes to confirm the connection.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值