-
Notifications
You must be signed in to change notification settings - Fork 1
OpenSSH authentication agent
To report a problem or share an idea, use Issues; and if you have a suggestion for fixing the issue, please include those details, too.
Got questions or want to discuss something with our team? Join us on Slack!
The OpenSSH authentication agent (ssh-agent) is a program that stores SSH keys used for authentication in a process memory, so users are not prompted for passphrase when using ssh
or scp
to connect to hosts.
You can check if OpenSSH agent is running by executing the following command:
$ vssh openssh agent status
Linux or macOS
You can start OpenSSH agent by executing the following command:
$ eval `ssh-agent`
Windows
By default, the service of OpenSSH agent is disabled. You have to enable and start it by executing the following command:
# Make sure you're running as an Administrator.
Get-Service ssh-agent | Set-Service -StartupType Manual
# Start the service
Start-Service ssh-agent
# This should return a status of Running
Get-Service ssh-agent
Once you verify that the service is running, you can use the command below to set the agent to start automatically on boot.
# Make sure you're running as an Administrator.
Get-Service ssh-agent | Set-Service -StartupType Automatic
For detailed information on how to start OpenSSH agent on Windows, please refer to this article.