View Issue Details

IDProjectCategoryView StatusLast Update
0006067Kali LinuxKali Package Bugpublic2020-02-05 14:37
Reporterfocaaby Assigned Torhertzog  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2020.1 
Summary0006067: The latest image(Kali Linux 2020.1) in AWS Marketplace can not be accessed via SSH
Description

I launched the EC2 instance with the latest image(Kali Linux 2020.1) in AWS Marketplace, but it can not be accessed via SSH.

Steps To Reproduce
  1. Select the us-east-1 region and launch the instance with AMI ami-08f8f5dbba23a784b.

  2. 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

  3. Same error message in console log.

    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.

  4. 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.

  5. 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
    .

Activities

rhertzog

rhertzog

2020-02-05 14:37

administrator   ~0012022

The AWS image has been fixed.

Issue History

Date Modified Username Field Change
2020-02-04 06:44 focaaby New Issue
2020-02-05 14:37 rhertzog Assigned To => rhertzog
2020-02-05 14:37 rhertzog Status new => resolved
2020-02-05 14:37 rhertzog Resolution open => fixed
2020-02-05 14:37 rhertzog Note Added: 0012022