I meet a bad case and now could not ssh to my vm instance . to the instance safe I set nopasswordlogin only allow ssh key . yesterday I use root user update the dir of /var/www/mywebsite to chown to 600 but use the command " chmod 600 / var/www/mywebsite " , at begin I didnot release the question ,then I quit the iterm , so I could not ssh to my vm any more ,How can I do now ?
I want to reset the instance but nothing happen ,here is the log ,it shows ssh service not running because of the bad permission
Jun 12 00:43:34 instance-1 ssserver: 2018-06-12 00:43:34 WARNING unsupported addrtype 73, maybe wrong password or encryption method
Jun 12 00:43:34 instance-1 ssserver: 2018-06-12 00:43:34 ERROR can not parse header when handling connection from
222.249.232.10:33629Jun 12 00:43:36 instance-1 ssserver: 2018-06-12 00:43:36 WARNING unsupported addrtype 73, maybe wrong password or encryption method
Jun 12 00:43:36 instance-1 ssserver: 2018-06-12 00:43:36 ERROR can not parse header when handling connection from
222.249.232.10:33663Jun 12 00:43:38 instance-1 ssserver: 2018-06-12 00:43:38 WARNING unsupported addrtype 73, maybe wrong password or encryption method
Jun 12 00:43:38 instance-1 ssserver: 2018-06-12 00:43:38 ERROR can not parse header when handling connection from
222.249.232.10:33715Jun 12 00:44:02 instance-1 ssserver: 2018-06-12 00:44:02 WARNING unsupported addrtype 73, maybe wrong password or encryption method
Jun 12 00:44:02 instance-1 ssserver: 2018-06-12 00:44:02 ERROR can not parse header when handling connection from
222.249.232.10:34090Jun 12 00:44:07 instance-1 systemd: sshd.service holdoff time over, scheduling restart.
Jun 12 00:44:07 instance-1 systemd: Starting Google Compute Engine Instance Setup...
Jun 12 00:44:07 instance-1 instance-setup: INFO Running set_multiqueue.
Jun 12 00:44:07 instance-1 instance-setup: INFO Setting /proc/irq/29/smp_affinity_list to 0 for device virtio1.
Jun 12 00:44:07 instance-1 instance-setup: INFO /proc/irq/29/smp_affinity_list: real affinity 0
Jun 12 00:44:07 instance-1 instance-setup: INFO Setting /proc/irq/30/smp_affinity_list to 0 for device virtio1.
Jun 12 00:44:07 instance-1 instance-setup: INFO /proc/irq/30/smp_affinity_list: real affinity 0
Jun 12 00:44:07 instance-1 instance-setup: INFO Queue 0 XPS=1 for /sys/class/net/eth0/queues/tx-0/xps_cpus
Jun 12 00:44:07 instance-1 systemd: Started Google Compute Engine Instance Setup.
Jun 12 00:44:07 instance-1 systemd: Starting OpenSSH server daemon...
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: Permissions 0755 for '/etc/ssh/ssh_host_rsa_key' are too open.
Jun 12 00:44:07 instance-1 sshd: It is required that your private key files are NOT accessible by others.
Jun 12 00:44:07 instance-1 sshd: This private key will be ignored.
Jun 12 00:44:07 instance-1 sshd: key_load_private: bad permissions
Jun 12 00:44:07 instance-1 sshd: Could not load host key: /etc/ssh/ssh_host_rsa_key
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: Permissions 0755 for '/etc/ssh/ssh_host_ecdsa_key' are too open.
Jun 12 00:44:07 instance-1 sshd: It is required that your private key files are NOT accessible by others.
Jun 12 00:44:07 instance-1 sshd: This private key will be ignored.
Jun 12 00:44:07 instance-1 sshd: key_load_private: bad permissions
Jun 12 00:44:07 instance-1 sshd: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
Jun 12 00:44:07 instance-1 sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Jun 12 00:44:07 instance-1 sshd: Permissions 0755 for '/etc/ssh/ssh_host_ed25519_key' are too open.
Jun 12 00:44:07 instance-1 sshd: It is required that your private key files are NOT accessible by others.
Jun 12 00:44:07 instance-1 sshd: This private key will be ignored.
Jun 12 00:44:07 instance-1 sshd: key_load_private: bad permissions
Jun 12 00:44:07 instance-1 sshd: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Jun 12 00:44:07 instance-1 sshd: sshd: no hostkeys available -- exiting.
Jun 12 00:44:07 instance-1 systemd: sshd.service: main process exited, code=exited, status=1/FAILURE
Jun 12 00:44:07 instance-1 systemd: Failed to start OpenSSH server daemon.
Jun 12 00:44:07 instance-1 systemd: Unit sshd.service entered failed state.
Jun 12 00:44:07 instance-1 systemd: sshd.service failed.