On 12/4/20 10:03, Paul Heinlein wrote:
> On Thu, 3 Dec 2020, Paul Heinlein wrote:
>
>> Someone asked about the link to SSH ProxyJump documentation. There's
>> more to be said than this, but here's the link:
>>
>> https://www.madboa.com/blog/2017/11/02/ssh-proxyjump/
>>
>> I'll post a follow-up with a real configuration that uses that sort
>> of thing in the next day or two. tl;dr: search the Internet for "ssh
>> controlmaster"
>  ...
>
> The next customization for your ssh config file ensures any SSH
> session destined for *.my.com uses your control session.
>
> # part of ~/.ssh/config
> Host *.my.com
>   CheckHostIP no
>   ProxyCommand ssh mybastion -W %h:%p
>
> The important thing to note here is that you'll need to use fully
> quallified domain names (e.g., dev.my.com) rather than short versions
> (dev) if you want to use the multiplex connection.

You can still use short names via the HostName directive.

Host dev
  HostName dev.my.com
  CheckHostIP no
  ProxyCommand ssh mybastion -W %h:%p


Cheers!
David

-- 
David/dafydd PGP Public Key
<https://keys.openpgp.org/vks/v1/by-fingerprint/042BC7A61817FD78AC85DD4ACC0B3F78FDDBD9AC>


"If all the girls attending the Yale prom were laid end to end, I wouldn't be a 
bit surprised." --Dorothy Parker

_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to