{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/480","labels_url":"https://api.github.com/repos/coreos/bugs/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/480/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/480/events","html_url":"https://github.com/coreos/bugs/issues/480","id":106945014,"number":480,"title":"Change the SSHD settings on a CoreOS installation on EC2","user":{"login":"Dynom","id":39014,"avatar_url":"https://avatars.githubusercontent.com/u/39014?v=3","gravatar_id":"","url":"https://api.github.com/users/Dynom","html_url":"https://github.com/Dynom","followers_url":"https://api.github.com/users/Dynom/followers","following_url":"https://api.github.com/users/Dynom/following{/other_user}","gists_url":"https://api.github.com/users/Dynom/gists{/gist_id}","starred_url":"https://api.github.com/users/Dynom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dynom/subscriptions","organizations_url":"https://api.github.com/users/Dynom/orgs","repos_url":"https://api.github.com/users/Dynom/repos","events_url":"https://api.github.com/users/Dynom/events{/privacy}","received_events_url":"https://api.github.com/users/Dynom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-17T09:27:22Z","updated_at":"2015-10-19T21:38:02Z","closed_at":"2015-10-19T21:38:02Z","body":"Hello,\r\n\r\n**TL;DR**\r\nI'd like to change some SSH settings and I'm unsure on how to proceed. Whenever I follow this guide: https://coreos.com/os/docs/latest/customizing-sshd.html  (and I use the `sshd.socket` approach.) My EC2 instance won't survive a reboot (as outlined in issue #479).\r\n\r\n**The longer version**\r\nI've noticed that `sshd.socket` is started and loaded from `/usr/lib64/systemd/system/sshd.socket`. However this partition is mounted using a read-only partition:\r\n```\r\n$ lsblk\r\nNAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nxvda    202:0    0   30G  0 disk\r\n|-xvda1 202:1    0  128M  0 part /boot\r\n|-xvda2 202:2    0    2M  0 part\r\n|-xvda3 202:3    0    1G  0 part /usr\r\n|-xvda4 202:4    0    1G  0 part\r\n|-xvda6 202:6    0  128M  0 part /usr/share/oem\r\n|-xvda7 202:7    0   64M  0 part\r\n`-xvda9 202:9    0 27.7G  0 part /\r\n```\r\n```\r\n$ mount | grep xvda3\r\n/dev/xvda3 on /usr type ext4 (ro,relatime)\r\n```\r\n\r\nExample cloud-config:\r\n```\r\n#cloud-config\r\n\r\ncoreos:\r\n  units:\r\n  - name: sshd.socket\r\n    command: restart\r\n    content: |\r\n      [Socket]\r\n      ListenStream=2222\r\n      Accept=yes\r\n```"}}