<div dir="ltr">Hello Tim,<div><br></div><div>Mosh itself doesn&#39;t have anything to do with ssh-agent forwarding. Mosh doesn&#39;t maintain an SSH connection and it doesn&#39;t forward ssh-agent requests.</div><div><br></div>


<div>If you need this, you&#39;ll have to figure out how to keep an SSH connection open to forward the ssh-agent requests from the server to the client. Alternately, there is an experimental branch of Mosh (contributed by Timo Rinne) that adds ssh-agent forwarding that you can try.</div>

<div><br></div><div>(For the future, I think we have decided not to go in this direction of adding ssh-agent forwarding and X11 forwarding and SOCKS forwarding to Mosh and just to make a generic &quot;slosh&quot; as a separate program that ferries a reliable stream across a roaming, multihomed connection. Our current plans to do this involve lightweight Linux containers, which are working slickly in testing but would be Linux-only, so not sure what the community reaction will be.)</div>


<div><br></div><div>Best regards,</div><div>Keith</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 17, 2013 at 10:43 AM, Tim Visher <span dir="ltr">&lt;<a href="mailto:tim.visher@gmail.com" target="_blank">tim.visher@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
I&#39;m trying to get SSH Agent Forwarding to work. When I initially<br>
connect to a box using mosh, my agent forwards fine and I can hop from<br>
that box to somewhere else with no problem.<br>
<br>
When I drop that connection and reconnect though, the agent stops<br>
working. grawity on #mosh explained to me that the `SSH_AUTH_SOCK` is<br>
refreshed on every new ssh connection and that previously running<br>
processes (like tmux) will not have their environment updated (indeed<br>
they can&#39;t). So I came up with a simple way to put some files out on<br>
the file system with the current variable values and then source them<br>
in the running processes.<br>
<br>
As far as I can tell, this worked yesterday.<br>
<br>
Today, I went to do the same thing. I moshed in to the box and ran my<br>
variable export scripts and then reconnected to tmux and tried to hop<br>
and received an error.<br>
<br>
The `SSH_AUTH_SOCK` value is indeed changing when I mosh in, but it<br>
seems to either be ignored or in some other way be incorrect.<br>
<br>
Is there anything I can do to overcome this?<br>
<br>
Thanks in advance!<br>
<br>
--<br>
<br>
In Christ,<br>
<br>
Timmy V.<br>
<br>
<a href="http://blog.twonegatives.com/" target="_blank">http://blog.twonegatives.com/</a><br>
<a href="http://five.sentenc.es/" target="_blank">http://five.sentenc.es/</a> -- Spend less time on mail<br>
_______________________________________________<br>
mosh-users mailing list<br>
<a href="mailto:mosh-users@mit.edu" target="_blank">mosh-users@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/mosh-users" target="_blank">http://mailman.mit.edu/mailman/listinfo/mosh-users</a><br>
</blockquote></div><br></div></div>