Enable ssh-agent on Windows 11
Microsoft has so many pitfalls!!!
目录5 个章节
Introduction
I previously covered Passwordless SSH Login on Windows 10, but Windows 11 is a bit different now.
So I wrote another post.
Background
Microsoft’s current official documentation clearly states:
The ssh-agent service on Windows is Disabled by default.
So you need to un-disable it first, then start it.
Steps
In PowerShell with administrator privileges, run:
# 管理员 PowerShell
Set-Service -Name ssh-agent -StartupType Automatic
Start-Service ssh-agent
If there are no errors, it succeeded.
At this point, running ssh-add will work normally.
Forward Agent
If you want to forward the local ssh-agent to a remote server, add the -A parameter when connecting:
ssh -A user@remote-server
Or configure it in ~/.ssh/config:
Host remote-server
HostName remote-server
User user
ForwardAgent yes
References
_EOF_
Enable ssh-agent on Windows 11
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
2024年,提升Windows开发和使用体验的实践经验 - RIME输入法
上一篇文章介绍了 Windows 下的包管理器,本文继续介绍输入法。 事实上 Windows 的输入法生态比 Linux/Mac 丰富很多,不过很多国产输入法存在窃取隐私、植入广告、乱安装流氓软件等问题,现在有开源的 RIME 输入法可以选择,何必受这气呢
2024-02-29 · Windows · 约 1 分钟
使用命令行删除 Windows 网络映射驱动器
Windows 这破系统至今还卡死右键菜单?命令行删映射盘算个事。真就没人修复这 XP 时代的老问题?
2025-10-02 · Windows · 约 1 分钟
2024年,提升Windows开发和使用体验实践 - 小工具篇
本来是一篇文章的,不知不觉写成了系列。 其实开工那几天就已经写好了长文,这几天一忙就没连着发了。 本文介绍一些 Windows 上用的小工具。
2024-02-29 · Windows · 约 1 分钟
在 Windows 10 上实现免密码 SSH 登录
在日常开发中,SSH(Secure Shell)作为一种安全的远程登录协议,广泛用于 Linux 和 Windows 系统之间的连接。为了提高效率,我们可以通过配置免密码登录,省去每次连接时输入密码的繁琐过程。
2026-08-25 · Windows · 约 1 分钟
讨论
共 0 条加载评论中…