[Semibug] sshd configuration for Jails questions

Mark Moellering markmoellering at psyberation.com
Wed Jan 25 16:52:36 EST 2023


Question.  I am configuring a server , the ip address comes from DHCP but I
want to run jails, which means restricting the IP Addresses sshd listens on.

Normally, this is done by IP but I don't know how to do it for DHCP.  Will
using the hostname work.  for example
ListenAddress hostname.mydomain.com

Or will that not work?

I have seen online that some people have cron scripts that look for a
change of DHCP IP and then update the sshd_config file and restart sshd but
I am hoping to avoid that...
Of course, I can use a non-standard port but not sure I want that either

Thanks

Mark
P.S. Michael Lucas appears to not have addressed this in his book about
Jails  ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.nycbug.org:8443/pipermail/semibug/attachments/20230125/6675c0a6/attachment.htm>


More information about the Semibug mailing list