PDA

View Full Version : ssh acces and autologin on raspbery 2 b with kali



750rom
2016-03-24, 07:16
with the command ssh [email protected] I cannot connect with the password toor

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


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?

750rom
2016-03-24, 19:57
with the command ssh [email protected] I cannot connect with the password toor

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


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?

750rom
2016-03-28, 11:19
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