Basic SSH Agent on Powershell

Written: 16 Feb 2025 | 10:59 PM

These are my notes to use ssh agent on powershell because I need agent forward feature when use ssh

Table of Contents

Open Table of Contents

Commands

Get status

Get-Service -Name ssh-agent

Change startup type

Set-Service -Name ssh-agent -StartupType Manual

Start service

Start-Service -Name ssh-agent

Add ssh public key to agent

ssh-add path/to/ssh_public_key

ssh-add -L

Check Github

ssh -T [email protected]

I will get Hi your-username! You've successfully authenticated, but GitHub does not provide shell access.

Then configure ./ssh/config to use forward agent and finally ssh to the server.