Open jerryc05 opened 2 years ago
You can try --experimental-remote-ip=remote
(see the man page for documentation).
(Note that you will only be able to do this if you have a persistent SSH session—a persistent Mosh session won’t help you.)
Cool, but remote
does not work if the host is behind another machine (like NAT).
Then I tried local
, which works great 99% of time, except that it does not parse the host alias from the ssh config, causing
could not get canonical name for ???: Name or service not known
Can we add this feature somehow? E.g. add another option like local-ssh-config
so that it parses ssh config's host alias before sending it to DNS.
I have seen this pr already, but it's almost 10 years from now: https://github.com/mobile-shell/mosh/pull/119
So it there a "modern" way to passwordless-ly connect to remote host? One workaround would be
ssh-add
my keys and then connect, but does not work for password authentication servers.