Re: [PATCH v1 0/6] Enable users to set an alternate ssh port

Luis Chamberlain <[email protected]> Thu, 2 Oct 2025 17:50:27 -0700
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
On Thu, Oct 02, 2025 at 04:21:34PM -0400, Chuck Lever wrote:
> From: Chuck Lever <[email protected]>
> 
> Particularly in the cloud, provisioning publicly visible instances
> with port 22 for ssh is bad security practice. Almost as soon as
> kdevops brings up such an instance, it comes under attack on port
> 22.
> 
> So, my thought is to enable the use of an alternate port for Ansible
> control. This series provides that flexibility; the default is still
> to use port 22.
> 
> I've tested this with RHEL 9 on AWS, Azure, GCE, and OCI, and with
> Debian 12 on AWS; and I tested with Fedora and guestfs.
> 
> One of the side benefits of this series is that now all of the
> cloud providers except Lambda make use of a cloud-init script. We
> can introduce additional capabilities there, going forward.
> 
> Also pushed to the linux-kdevops/kdevops alternate-ssh-port branch.

This is awesome security best practice, thanks! For cloud providers
which support it, why don't we just make it a default?

  Luis