New answers tagged

0

What you need is to include a single line to tell cloud-init to append to sshd_config rather that replace the whole file, i.e append: true. So your cloud_init.cfg file will look like this: --- write_files: - path: /etc/ssh/sshd_config content: | ClientAliveInterval 30000 ClientAliveCountMax 50 append: true


0

In my case I disabled DNS on the server sshd_config UseDNS no


0

The ChrootDirectory must contain the necessary files and directories to support the user's session. For an interactive session this requires at least a shell, typically sh(1), and basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4), and tty(4) devices. For file transfer sessions using SFTP no additional configuration of the ...


Top 50 recent answers are included