<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div><span>Hello Stephan,</span></div>
<div><span> </span></div>
<div><span>thanks for your reply.</span></div>
<div><span> </span></div>
<div><span>When you say I should modify ~/.ssh/config, where is this file?</span></div>
<div><span>On jumphost?</span></div>
<div><span> </span></div>
<div><span>Actually I have a working setup on Windows 10, but here I use another</span></div>
<div><span>terminal emulator: MobaXterm.</span></div>
<div><span>And in the settings of MobaXterm I enabled SSH forwarding.</span></div>
<div><span> </span></div>
<div><span>As of now I don't want to continue using MobaXterm on Windows 11, but</span></div>
<div><span>using Windows Terminal.<br /><br />Please not that I have not installed <a href="https://gitforwindows.org/">git for windows</a> that includes tool "Git BASH"; I don't think that this additional terminal is required to use SSH.<br /></span></div>
<div> </div>
<div><span>I can run ssh-add.exe -L in Windows PowerShell and get the correct SSH public key fetched from secure card.</span></div>
<div> </div>
<div><span>But once connected to jumphost, all SSH relevant information is unavailable.</span></div>
<div> </div>
<div> </div>
<div><span>THX</span></div>
<p><br /></p>
<p id="reply-intro">On 2023-11-25 12:30, Stephan Verbücheln via Gnupg-users wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Coincidentally, I have a similar setup. Fortunately, you do *not* need<br />Agent Forwarding for authentication via jump hosts.<br /><br />The entry for your host (in “~/.ssh/config”) for this host should look<br />something like this:<br /><br />Host myalias<br />    HostName myserver.com<br />    ProxyJump jumpserver.net<br />    IdentityAgent %d/.gnupg/S.gpg-agent.ssh<br /><br />There may be some Windows-specific pitfalls. Perhaps you have to be<br />careful with the line breaks (Unix versus Windows convention) in the<br />configuration files.<br /><br />Regards<br />Stephan</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />Gnupg-users mailing list<br /><a href="mailto:Gnupg-users@gnupg.org">Gnupg-users@gnupg.org</a><br /><a href="https://lists.gnupg.org/mailman/listinfo/gnupg-users" target="_blank" rel="noopener noreferrer">https://lists.gnupg.org/mailman/listinfo/gnupg-users</a></div>
</blockquote>
<p><br /></p>

</body></html>