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 许可协议。转载请注明出处!
相关文章
Windows的Linux子系统上配置SSH服务器
安装openssh 这个不用啰嗦太多,首先需要安装openssh-server和openssh-client。 修改sshd-config配置 需要关注的就是这三行。 UsePrivilegeSeparation no #因为wsl没有实现chroot PasswordAuthentication yes ListenAddress 0.0.0.0
2021-12-18 · Windows · 约 1 分钟
使用EarTrumpet代替windows默认的音量调节功能
Windows 默认的音量调节功能挺弱的,要分别调节各个应用的音量得进入二级菜单,麻烦得很。有了这个功能就很方便了
2025-01-26 · Windows · 约 1 分钟
使用twinkle-tray快捷调整多个显示器的亮度
自从安装了这个小工具,我再也没用过笔记本键盘上的快捷键了~
2025-01-26 · Windows · 约 1 分钟
用 dnot.sh 替代 Windows Defender
dnot.sh 往安全中心塞了个假 AV 签名,Defender 就乖乖下岗了——至少监控上看。实际还得再跑 extra-strip.bat 才能真关,这两步缺一不可,属实有点折腾。搞定即裸奔,胆子小的别碰。
2026-09-17 · Windows · 约 1 分钟
讨论
共 0 条加载评论中…