Results 1 to 3 of 3

Thread: ssh acces and autologin on raspbery 2 b with kali

  1. #1
    Join Date
    2014-Oct
    Posts
    4

    ssh acces and autologin on raspbery 2 b with kali

    with the command ssh [email protected] I cannot connect with the password toor
    Code:
    service ssh status
    ● ssh.service - OpenBSD Secure Shell server
       Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: disa
    bled)
       Active: active (running) since arb 2015-11-18 10:50:14 UTC; 4 mont
    hs 5 days ago
     Main PID: 254 (sshd)
       CGroup: /system.slice/ssh.service
               ├─ 254 /usr/sbin/sshd -D
               ├─7724 sshd: root [priv]   
               └─7730 sshd: root [net]    
    
    cig 24 06:22:51 kali sshd[254]: Server listening on :: port 22.
    cig 24 06:28:17 kali sshd[1318]: pam_unix(sshd:auth): authentication fai
    lure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 06:28:19 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:32 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:40 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:40 kali sshd[1318]: Connection closed by 192.168.1.8 [preauth]
    cig 24 06:28:40 kali sshd[1318]: PAM 2 more authentication failures; log
    name= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 07:04:10 kali sshd[7724]: pam_unix(sshd:auth): authentication fai
    lure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 07:04:12 kali sshd[7724]: Failed password for root from 192.168.1.8 port 
    48079 ssh2
    cig 24 07:04:23 kali sshd[7724]: Failed password for root from 192.168.1.8 port 
    48079 ssh2
    Code:
    enxb827eb0c54ec: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.1.6  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::ba27:ebff:fe0c:54ec  prefixlen 64  scopeid 0x20<link>
            ether b8:27:eb:0c:54:ec  txqueuelen 1000  (Ethernet)
            RX packets 285750  bytes 391803982 (373.6 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 182261  bytes 16475329 (15.7 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    And how to autologin on raspberry?

  2. #2
    Join Date
    2014-Oct
    Posts
    4
    Quote Originally Posted by 750rom View Post
    with the command ssh [email protected] I cannot connect with the password toor
    Code:
    service ssh status
    ● ssh.service - OpenBSD Secure Shell server
       Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: disa
    bled)
       Active: active (running) since arb 2015-11-18 10:50:14 UTC; 4 mont
    hs 5 days ago
     Main PID: 254 (sshd)
       CGroup: /system.slice/ssh.service
               ├─ 254 /usr/sbin/sshd -D
               ├─7724 sshd: root [priv]   
               └─7730 sshd: root [net]    
    
    cig 24 06:22:51 kali sshd[254]: Server listening on :: port 22.
    cig 24 06:28:17 kali sshd[1318]: pam_unix(sshd:auth): authentication fai
    lure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 06:28:19 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:32 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:40 kali sshd[1318]: Failed password for root from 192.168.1.8 port 
    48074 ssh2
    cig 24 06:28:40 kali sshd[1318]: Connection closed by 192.168.1.8 [preauth]
    cig 24 06:28:40 kali sshd[1318]: PAM 2 more authentication failures; log
    name= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 07:04:10 kali sshd[7724]: pam_unix(sshd:auth): authentication fai
    lure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.8  user=root
    cig 24 07:04:12 kali sshd[7724]: Failed password for root from 192.168.1.8 port 
    48079 ssh2
    cig 24 07:04:23 kali sshd[7724]: Failed password for root from 192.168.1.8 port 
    48079 ssh2
    Code:
    enxb827eb0c54ec: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.1.6  netmask 255.255.255.0  broadcast 192.168.1.255
            inet6 fe80::ba27:ebff:fe0c:54ec  prefixlen 64  scopeid 0x20<link>
            ether b8:27:eb:0c:54:ec  txqueuelen 1000  (Ethernet)
            RX packets 285750  bytes 391803982 (373.6 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 182261  bytes 16475329 (15.7 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    And how to autologin on raspberry?
    Solved autologin issue by uncommenting autologin option /etc/lightdm/lightdm.conf

    Still persists problem with ssh [email protected], toor (default pw which i have never changed) does not work. Any ideas on the basis of posted logs?

  3. #3
    Join Date
    2014-Oct
    Posts
    4
    The only solution that works worked for me was to manually copy on a system than copying onto usb dongle rsa key and copying to .ssh/authorysed_keys file. Then any system with the key and in know_host could login remotely. So gave a system update & upgrade & dist-upgrade command than all x setting have been lost: thus no auto login, no xfce4 desktop, no remote control unless before connect via keyboard inserting root and toor. What the hells has happened?

    edit
    solved the x server problem
    e2fsck -fyv /dev/mmcblk0p2 && reboot
    and all goes ok
    Last edited by 750rom; 2016-03-29 at 13:00.

Similar Threads

  1. Raspbery Pi2 Kali 2.0 2.4GHz keyboard problem
    By Havran228 in forum ARM Archive
    Replies: 0
    Last Post: 2016-09-11, 02:15
  2. Kali-Linux-sdr on Raspbery Pi
    By mkturk in forum ARM Archive
    Replies: 0
    Last Post: 2014-04-06, 12:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •