Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] stages.py[DEBUG]: Running module ssh (<module 'cloudinit.config.cc_ssh' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh.py'>) with frequency once-per-instance
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] handlers.py[DEBUG]: start: init-network/config-ssh: running config-ssh with frequency once-per-instance
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/a94ea439-445e-447c-9227-64f71802ff61/sem/config_ssh - wb: [420] 24 bytes
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] helpers.py[DEBUG]: Running config-ssh using lock (<FileLock using file '/var/lib/cloud/instances/a94ea439-445e-447c-9227-64f71802ff61/sem/config_ssh'>)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'rsa', '-N', '', '-f', '/etc/ssh/ssh_host_rsa_key'] with allowed return codes [0] (shell=False, capture=True)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'dsa', '-N', '', '-f', '/etc/ssh/ssh_host_dsa_key'] with allowed return codes [0] (shell=False, capture=True)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'ecdsa', '-N', '', '-f', '/etc/ssh/ssh_host_ecdsa_key'] with allowed return codes [0] (shell=False,capture=True)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'ed25519', '-N', '', '-f', '/etc/ssh/ssh_host_ed25519_key'] with allowed return codes [0] (shell=False, capture=True)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /home/ubuntu/.ssh to 1000:1000
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/sshd_config (quiet=False)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/sshd_config
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /home/ubuntu/.ssh/authorized_keys - wb: [384] 213 bytes
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /home/ubuntu/.ssh/authorized_keys to 1000:1000
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /root/.ssh to 0:0
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/sshd_config (quiet=False)
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/sshd_config
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /root/.ssh/authorized_keys - wb: [384] 213 bytes
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /root/.ssh/authorized_keys to 0:0
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/config-ssh: SUCCESS: config-ssh ran successfully
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key.
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub.
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] stages.py[DEBUG]: Running module ssh-import-id (<module 'cloudinit.config.cc_ssh_import_id' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_ssh_import_id.py'>) with frequency once-per-instance
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] handlers.py[DEBUG]: start: modules-config/config-ssh-import-id: running config-ssh-import-id with frequency once-per-instance
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/a94ea439-445e-447c-9227-64f71802ff61/sem/config_ssh_import_id - wb: [420] 25 bytes
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] helpers.py[DEBUG]: Running config-ssh-import-id using lock (<FileLock using file '/var/lib/cloud/instances/a94ea439-445e-447c-9227-64f71802ff61/sem/config_ssh_import_id'>)
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] handlers.py[DEBUG]: finish: modules-config/config-ssh-import-id: SUCCESS: config-ssh-import-id ran successfully
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Server listening on 0.0.0.0 port 22.
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Server listening on :: port 22.
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/sshd_config (quiet=False)
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/sshd_config
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Writing to /etc/ssh/sshd_config - wb: [420] 2527 bytes
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Received signal 15; terminating.
Jan 21 01:25:33 stress-test-23357 sshd[1316]: Did not receive identification string from 85.0.154.127
Jan 21 01:25:33 stress-test-23357 sshd[1317]: Server listening on 0.0.0.0 port 22.
Jan 21 01:25:33 stress-test-23357 sshd[1317]: Server listening on :: port 22.
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] cc_set_passwords.py[DEBUG]: Restarted the ssh daemon
We can see the client that has been rejected due to restart.
The restricted output to SSH stuff:
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] stages.py[DEBUG]: Running module ssh (<module 'cloudinit. config. cc_ssh' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_ssh. py'>) with frequency once-per-instance config- ssh: running config-ssh with frequency once-per-instance cloud/instances /a94ea439- 445e-447c- 9227-64f71802ff 61/sem/ config_ ssh - wb: [420] 24 bytes cloud/instances /a94ea439- 445e-447c- 9227-64f71802ff 61/sem/ config_ ssh'>) ssh_host_ rsa_key' ] with allowed return codes [0] (shell=False, capture=True) ssh_host_ dsa_key' ] with allowed return codes [0] (shell=False, capture=True) ssh_host_ ecdsa_key' ] with allowed return codes [0] (shell= False,capture= True) ssh_host_ ed25519_ key'] with allowed return codes [0] (shell=False, capture=True) sshd_config (quiet=False) sshd_config .ssh/authorized _keys - wb: [384] 213 bytes .ssh/authorized _keys to 1000:1000 sshd_config (quiet=False) sshd_config ssh/authorized_ keys - wb: [384] 213 bytes ssh/authorized_ keys to 0:0 config- ssh: SUCCESS: config-ssh ran successfully ssh_host_ rsa_key. ssh_host_ rsa_key. pub. ssh_host_ dsa_key. ssh_host_ dsa_key. pub. ssh_host_ ecdsa_key. ssh_host_ ecdsa_key. pub. ssh_host_ ed25519_ key. ssh_host_ ed25519_ key.pub. config. cc_ssh_ import_ id' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_ssh_ import_ id.py'> ) with frequency once-per-instance config/ config- ssh-import- id: running config- ssh-import- id with frequency once-per-instance cloud/instances /a94ea439- 445e-447c- 9227-64f71802ff 61/sem/ config_ ssh_import_ id - wb: [420] 25 bytes ssh-import- id using lock (<FileLock using file '/var/lib/ cloud/instances /a94ea439- 445e-447c- 9227-64f71802ff 61/sem/ config_ ssh_import_ id'>) config/ config- ssh-import- id: SUCCESS: config- ssh-import- id ran successfully sshd_config (quiet=False) sshd_config sshd_config - wb: [420] 2527 bytes passwords. py[DEBUG] : Restarted the ssh daemon
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] handlers.py[DEBUG]: start: init-network/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] helpers.py[DEBUG]: Running config-ssh using lock (<FileLock using file '/var/lib/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'rsa', '-N', '', '-f', '/etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'dsa', '-N', '', '-f', '/etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'ecdsa', '-N', '', '-f', '/etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'ed25519', '-N', '', '-f', '/etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /home/ubuntu/.ssh to 1000:1000
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /home/ubuntu/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /home/ubuntu/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /root/.ssh to 0:0
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Writing to /root/.
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] util.py[DEBUG]: Changing the ownership of /root/.
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/
Jan 21 01:25:31 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your identification has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[990]: Your public key has been saved in /etc/ssh/
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] stages.py[DEBUG]: Running module ssh-import-id (<module 'cloudinit.
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] handlers.py[DEBUG]: start: modules-
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] helpers.py[DEBUG]: Running config-
Jan 21 01:25:32 stress-test-23357 cloud-init[1115]: [CLOUDINIT] handlers.py[DEBUG]: finish: modules-
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Server listening on 0.0.0.0 port 22.
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Server listening on :: port 22.
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Reading from /etc/ssh/
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Read 2531 bytes from /etc/ssh/
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] util.py[DEBUG]: Writing to /etc/ssh/
Jan 21 01:25:33 stress-test-23357 sshd[1303]: Received signal 15; terminating.
Jan 21 01:25:33 stress-test-23357 sshd[1316]: Did not receive identification string from 85.0.154.127
Jan 21 01:25:33 stress-test-23357 sshd[1317]: Server listening on 0.0.0.0 port 22.
Jan 21 01:25:33 stress-test-23357 sshd[1317]: Server listening on :: port 22.
Jan 21 01:25:33 stress-test-23357 cloud-init[1115]: [CLOUDINIT] cc_set_
We can see the client that has been rejected due to restart.