fedora-coreos-docs icon indicating copy to clipboard operation
fedora-coreos-docs copied to clipboard

Document how to change SSH port (and other settings)

Open jbtrystram opened this issue 1 year ago • 2 comments

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.

jbtrystram avatar Jul 08 '24 13:07 jbtrystram

You probably also need to set Port in an /etc/ssh/sshd_config.d/ dropin.

jlebon avatar Jul 08 '24 19:07 jlebon

You likely need to setup the SELinux config for the new port to let sshd listen on it.

travier avatar Jul 08 '24 20:07 travier