Windows
Key-based authentication in OpenSSH for Windows
# Set the sshd service to be started automatically
Get-Service -Name sshd | Set-Service -StartupType Automatic
# Now start the sshd service
Start-Service sshd
ssh-add returns with: "Error connecting to agent: No such file or directory"
In Windows PowerShell (run as admin):
Check the current status of ssh-agent:
Get-Service | ?{$_.Name -like '*ssh-agent*'} | select -Property Name, StartType, Status
Enable the Service if it is disabled:
Set-Service -Name ssh-agent -StartupType Manual
Start the Service:
Start-Service ssh-agent
Add your key as before:
ssh-add <path to the key>
نماها | |
---|---|
1 | کل بازدیدها |
1 | Members Views |
0 | Public Views |
عملیات | |
---|---|
0 | پسندها |
0 | نپسندیدهها |
0 | نظرها |
Share by mail
لطفا ورود به اشتراک گذاشتن این webpage با ایمیل.