tortoisegit ssh 不用每次输入密码

mac2025-09-26  31

1.gitlab -> 头像右下角 -> Settings -> profile -> 设置 Full Name 以及 Email  -> Update profile settings.

2.gitlab -> 头像右下角 -> Settings -> ssh keys -> 点击 generate one 弹出帮助。

3.windows -> powershell -> 输入帮助中的  ssh-keygen -o -t rsa -b 4096 -C "email@example.com" 生成 id_rsa.pub

4.把3中生成的id_rsa.pub中的文本拷贝到2中的 Key 里面 -> 点击 Add key.

5.Tortoise Git -> Settings -> Git -> 设置 Name 以及 Email

6.Tortoise Git -> Settings -> Network -> SSH client -> 设置为 C:\Program Files\Git\usr\bin\ssh.exe

 

最新回复(0)