-
Select the us-east-1 region and launch the instance with AMI ami-08f8f5dbba23a784b.
-
Try to access the instance via SSH.
$ ssh -A -i ~/.ssh/aws/maowang.pem [email protected] -v
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/maowang/.ssh/config
debug1: /Users/maowang/.ssh/config line 1: Applying options for
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for
debug1: /etc/ssh/ssh_config line 52: Applying options for *
debug1: Connecting to 3.94.117.43 [3.94.117.43] port 22.
debug1: connect to address 3.94.117.43 port 22: Connection refused
$ telnet 3.94.117.43 22
Trying 3.94.117.43...
telnet: connect to address 3.94.117.43: Connection refused
-
Same error message in console log.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
-
Mount the Kali EBS volume to recovery instance. The syslog errors indicated that the 'nvidia' driver, but there were no logs related to the SSH daemon.
Feb 3 02:40:38 kali systemd-modules-load[327]: modprobe: ERROR: could not insert 'nvidia_current': No such device
Feb 3 02:40:38 kali systemd-modules-load[325]: modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe -i nvidia-current ' for module nvidia: retcode 1
Feb 3 02:40:38 kali systemd-modules-load[325]: modprobe: ERROR: could not insert 'nvidia': Invalid argument
Feb 3 02:40:38 kali systemd-modules-load[413]: modprobe: ERROR: could not insert 'nvidia_current_modeset': No such device
Feb 3 02:40:38 kali systemd-modules-load[323]: modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe nvidia ; modprobe -i nvidia-current-modeset ' for module nvidia_modeset: retcode 1
Feb 3 02:40:38 kali systemd-modules-load[323]: modprobe: ERROR: could not insert 'nvidia_modeset': Invalid argument
Feb 3 02:40:38 kali systemd-modules-load[416]: modprobe: ERROR: could not insert 'nvidia_current_drm': No such device
Feb 3 02:40:38 kali systemd-modules-load[318]: Error running install command 'modprobe nvidia-modeset ; modprobe -i nvidia-current-drm ' for module nvidia_drm: retcode 1
Feb 3 02:40:38 kali systemd-modules-load[318]: Failed to insert module 'nvidia_drm': Invalid argument
Feb 3 02:40:38 kali systemd[1]: Started Helper to synchronize boot up for ifupdown.
Feb 3 02:40:38 kali systemd-modules-load[318]: Inserted module 'fuse'
Feb 3 02:40:38 kali systemd-modules-load[318]: Inserted module 'vmwgfx'
Feb 3 02:40:38 kali systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Feb 3 02:40:38 kali systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Feb 3 02:40:38 kali systemd[1]: Failed to start Load Kernel Modules.
-
Chroot to the 'Kali' as root user, and verify that the SSH daemon config parameter had been deprecated.
===
Starting OpenBSD Secure Shell server: sshd/etc/ssh/sshd_config line 7: Deprecated option UsePrivilegeSeparation
/etc/ssh/sshd_config line 8: Deprecated option KeyRegenerationInterval
/etc/ssh/sshd_config line 9: Deprecated option ServerKeyBits
/etc/ssh/sshd_config line 14: Deprecated option RSAAuthentication
/etc/ssh/sshd_config line 17: Deprecated option RhostsRSAAuthentication
.