返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
Windows

Set Pageant to Auto-Start on Windows Boot and Load Keys

Scenario When using Linux, ssh and git are very convenient, because a single ssh-add is enough once and for all; later when authentication is needed, ssh-agent will take care of it for us, without needing to enter the key password. Actually Windows can also achieve this kind of productivity liberation, by using Pageant from the tools that come with PuTTY. Pageant is mainly responsible for authenticating with the server, but each time after starting Pageant you need to manually load the key file. This article is to introduce making Pageant automatically loa

曦远 (DealiAxy)约 7 分钟
目录7 个章节

Scenario

When using Linux, ssh and git are very convenient, because a single ssh-add is enough once and for all; later when authentication is needed, ssh-agent will take care of it for us, without needing to enter the key password.

Actually, Windows can also achieve this kind of productivity liberation, by using Pageant from the tools that come with PuTTY.

Pageant is mainly responsible for authenticating with the server, but each time after starting Pageant you need to manually load the key file. This article introduces how to make Pageant automatically load keys on boot.

Install PuTTY

Official site: https://www.putty.org/

Just download and install, and you're done.

Auto-start Pageant on Boot

Windows 7

First open the Windows 7 startup folder: Win key -> All Programs -> Startup -> right-click -> Open,

Windows 10

In the address bar of a This PC window, enter

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

You can also press Win+R and enter: shell:startup to open the startup folder

Then find the location of pageant.exe, right-click -> Create shortcut, and a pageant.exe shortcut will appear in the directory

Drag the shortcut into the startup folder mentioned above

Make Pageant Automatically Load Key Files

First, the key file that Pageant needs to load is a ppk file generated by puttygen.exe from an SSH private key. If you don't have one, run puttygen.exe first to generate it~

Find the Pageant shortcut we created in the first step, right-click it, and in the dialog that appears, select the "Shortcut" tab, find the "Target" field, which should show the program path

"C:\Program Files\TortoiseGit\bin\pageant.exe"

Then append the private key file id_rsa.ppk after it, as follows:

"C:\Program Files\TortoiseGit\bin\pageant.exe" "C:\Users\[你的用户名]\.ssh\id_rsa.ppk"

Click OK to save, and you're done.

Welcome to Discuss

Programming Lab focuses on exploring popular new internet technologies and team agile development practices. Reply with linux, flutter, c#, netcore, android, kotlin, java, python, etc. in the backend of the WeChat official account 「程序设计实验室」 to get related technical articles and materials. If you have any questions, you can also leave a message in the official account backend~

_EOF_

Set Pageant to Auto-Start on Windows Boot and Load Keys

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

Win10安装Ubuntu子系统教程

一、启用“适用于Linux的Windows子系统” 通过Win10任务栏中的Cortana搜索框搜索打开“启用或关闭Windows功能”,向下滚动列表,即可看到“适用于Linux的Windows子系统”项。 勾选它,确定,然后按提示重启系统。 二、启用开发人员模式 然后进入“设置 - 更新和安全 - 针对开发人员”设置页面,选中“开发人员模式”。如图: 然后就会下载安装开发人员模式程序包,等待安装

2021-12-18 · Windows · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…