Use ssh-agent to save ssh passphrase in Window 10



Problem: When using SSH to connect other server, I don’t want to type passphrase everytime:)

For Windows 10 you need PowerShell to active ssh-agent in order to save passphrase.

Solution: First use Administrator right to open PowerShell (Windows PowerShell).

Then enter below command to active ssh-agent:

local Administrator PowerShell 
Set-Service ssh-agent -StnartupType Automatic
Start-Service ssh-agent
Get-Service ssh-agent

Then now you can add the key file (My file store in C:\Users\user.ssh\id_rsa), it will prompt a message to obtain the passphrase.

ssh-add C:\Users\user.ssh\id_rsa
(Enter your passphrase)

Eventually, ssh-agent will store your passphrase now. You can also enter

ssh-add -l

to check out the record.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Bitnami banner