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
目录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~

- Cnblogs: https://www.cnblogs.com/deali/
- Coding livestream: https://live.bilibili.com/11883038
- Zhihu: https://www.zhihu.com/people/dealiaxy
_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 分钟
用 dnot.sh 替代 Windows Defender
dnot.sh 往安全中心塞了个假 AV 签名,Defender 就乖乖下岗了——至少监控上看。实际还得再跑 extra-strip.bat 才能真关,这两步缺一不可,属实有点折腾。搞定即裸奔,胆子小的别碰。
2026-09-17 · Windows · 约 1 分钟
2024年,提升Windows开发和使用体验的一些实践 - 包管理器篇
Windows包管理器?scoop开源自定义,winget官方凑合,WingetUI图形界面总算不用手动折腾了。效率提升?哼,总算不是Linux小众玩家的专利。
2024-02-29 · Windows · 约 1 分钟
2024年,提升Windows开发和使用体验实践 - 终端&命令行篇
哼,Windows终端重灾区?用scoop装软件,Starship美化,但WinSW自启还是垃圾。啧,又一个scoop-search替代原版,gow补齐Unix工具,gsudo模拟sudo,但proxychains有点奇怪。哦,blessed-contrib仪表盘?只是好玩罢了,不如用erdtree看目录。
2024-03-05 · Windows · 约 1 分钟
讨论
共 0 条加载评论中…