曦远 (DealiAxy)一份私人的文字刊物

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蓝屏,随你召唤

蓝屏似乎是很多IT之家用户不希望看到的东西,虽然在Win10中你还可以扫描屏幕下方二维码参与微软互动赢取大……那个,蓝屏的好处就是为专业人员提供问题信息,比如当前的内存转储,有助于排查和解决问题。当然,可能光是默认蓝屏给出的信息不够,此时可以开启Win10蓝屏详细信息显示。 ▲这二维码居然“上位”了……VM12虚拟机测试结果 微软在Windows10中安排了手动“调取”蓝屏的方式,那就是**按住右

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

IT之家学院:让Win10文件管理器的详细信息窗格显示更多信息

当你在Windows的资源管理器中将详细信息窗格设置为可用,然后选中一个文件时(IT之家小编选中了一个exe文件),你将在窗口的右半部分看到这个文件的一些信息,包括修改日期、创建日期、文件大小和可用性,不过对于一些用户来说,这些信息十分有限,还是不够详细。 在这篇文章中,IT之家将为大家演示如何进行设置,以使文件资源管理器可在详细信息窗格中显示更多的关于已被选中的文件的有用信息。 下文中的方法适用

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

讨论

共 0 条

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

加载评论中…