Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize SSH password-free login when using TortoiseGit

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Recently in the study of Git, every pull/push will prompt for a password, more annoying. And because the network speed is relatively slow, it takes a long time to enter the password. It took a long time to avoid entering the password.

Principle TortoiseGit realizes key authentication based on ssh of putty.

1. Git server configuration 1.1 switches to git and operates under git users to avoid later permission changes su-git1.2 generation key ssh-keygen-t rsa to generate public and private keys

Add the public key to authorized_keyscat id_rsa.pub > > authorized_keyschmod authorized_keys if you are using GitHub, log in to github, click Accounting settings at the top right, select SSH key, click Add SSH key, and copy the contents of the id_rsa.pub.

2 client configuration because TortoiseGit does not use the same key as git, it uses putty. To use the key you just generated, you need to convert it.

2.1 download the private key sz id_rsa2.2 to regenerate the private key, open "puttygen.exe", click "load", select the last private key file id_rsa, and then "save private key" is saved as a ppk file.

2.3 specify the private key at git clone

At this point, the work is done.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report