fedora-coreos-docs
fedora-coreos-docs copied to clipboard
Document how to change SSH port (and other settings)
I tried to do this :
variant: fcos
version: 1.5.0
systemd:
units:
- name: sshd.socket
dropins:
- name: custom-port.conf
contents: |
[Socket]
ListenStream=2222
But this has no effect.
You probably also need to set Port in an /etc/ssh/sshd_config.d/ dropin.
You likely need to setup the SELinux config for the new port to let sshd listen on it.