Dear All,
I have a frequent problem on both of the 2 BBB which I have set up with ssh connection.
This time, it is using ssh through the usb connection
everything was fine for at least two days in a row, and I logout :
root@beaglebone:/home# exit
logout
Connection to 192.168.7.2 closed.
But then, it was impossible to reconnect, although this was done just a few seconds later
ecrins:~ jxl$ slogin root@192.168.7.2
ssh: connect to host 192.168.7.2 port 22: Connection refused
And the ping is OK
ecrins:~ jxl$ ping 192.168.7.2
PING 192.168.7.2 (192.168.7.2): 56 data bytes
64 bytes from 192.168.7.2: icmp_seq=0 ttl=64 time=0.522 ms
64 bytes from 192.168.7.2: icmp_seq=1 ttl=64 time=0.573 ms
I have the same problem with my remote BBB which is now unreachable until
I make a hard reboot.
Thanks for any help.
Jacques
Can you replicate this issue with the GateOne SSH link ?
It may be worthwhile to check the sshd logs and/or historical logs via the journalctl util.
May want to set the proper system time first and then note the time of failure and check that section of the logs.
/venkat
I believe this is what you mean :
I do not use GateOne SSH but the terminal from my mac which I prefer from a web application.
At the same time I realize that I should set up the clock !
--------- end of journalctl (or nearly, as I think that at the end, it is the reboot )
Jan 02 10:03:48 beaglebone avahi-daemon[136]: Registering new address record for fe80::caa0:30ff:feaa:b92a on eth0..
Jan 02 10:03:48 beaglebone dbus-daemon[133]: dbus[133]: [system] Activating via systemd: service name=‘org.freedesktop.ConsoleKit’ unit=‘console-kit-daemon.service’
Jan 02 10:03:48 beaglebone systemd[1]: Starting Console Manager…
Jan 02 10:03:48 beaglebone dbus-daemon[133]: dbus[133]: [system] Activating service name=‘org.freedesktop.PolicyKit1’ (using servicehelper)
Jan 02 10:03:48 beaglebone dbus[133]: [system] Activating service name=‘org.freedesktop.PolicyKit1’ (using servicehelper)
Jan 02 10:03:49 beaglebone polkitd[392]: started daemon version 0.104 using authority implementation local' version
0.104’
Jan 02 10:03:49 beaglebone dbus-daemon[133]: dbus[133]: [system] Successfully activated service ‘org.freedesktop.PolicyKit1’
Jan 02 10:03:49 beaglebone dbus[133]: [system] Successfully activated service ‘org.freedesktop.PolicyKit1’
Jan 02 10:03:49 beaglebone dbus-daemon[133]: dbus[133]: [system] Successfully activated service ‘org.freedesktop.ConsoleKit’
Jan 02 10:03:49 beaglebone dbus[133]: [system] Successfully activated service ‘org.freedesktop.ConsoleKit’
Jan 02 10:03:49 beaglebone systemd[1]: Started Console Manager.
Jan 02 10:03:50 beaglebone systemd[1]: Started SSH Key Generation.
Jan 02 10:03:50 beaglebone systemd[1]: Starting SSH Per-Connection Server…
Jan 02 10:03:50 beaglebone systemd[1]: Started SSH Per-Connection Server.
Jan 02 10:03:50 beaglebone dropbear[400]: Failed reading ‘/etc/dropbear/dropbear_dss_host_key’, disabling DSS
Jan 02 10:03:50 beaglebone dropbear[400]: Child connection from 192.168.7.1:49323
Jan 02 10:03:51 beaglebone systemd-udevd[83]: worker [106] terminated by signal 11 (Segmentation fault)
Jan 02 10:03:51 beaglebone systemd-udevd[83]: worker [106] failed while handling ‘/devices/ocp.2/47400000.usb/musb-hdrc.0.auto/gadget/net/usb0’
Jan 02 10:03:54 beaglebone python[132]: [I 000102 10:03:54 gateone:2549] /var/lib/gateone/server.conf not found or missing cookie_secret. A new one will be generate
Jan 02 10:03:54 beaglebone python[132]: [W 000102 10:03:54 gateone:2691] dtach command not found. dtach support has been disabled.
Jan 02 10:03:54 beaglebone python[132]: [I 000102 10:03:54 gateone:2714] Connections to this server will be allowed from the following origins: '’
Jan 02 10:03:55 beaglebone python[132]: [I 000102 10:03:55 gateone:2124] No authentication method configured. All users will be ANONYMOUS
Jan 02 10:03:55 beaglebone python[132]: [I 000102 10:03:55 gateone:2205] Loaded plugins: bookmarks, example, help, logging, logging_plugin, mobile, notice, playback,
Jan 02 10:03:55 beaglebone python[132]: [I 000102 10:03:55 gateone:2829] Listening on https://:443/
Jan 02 10:03:55 beaglebone python[132]: [I 000102 10:03:55 gateone:2835] Process running with pid 132
Jan 02 10:03:56 beaglebone dbus-daemon[133]: dbus[133]: [system] Activating service name=‘org.freedesktop.UPower’ (using servicehelper)
Jan 02 10:03:56 beaglebone dbus[133]: [system] Activating service name=‘org.freedesktop.UPower’ (using servicehelper)
Jan 02 10:03:56 beaglebone dbus-daemon[133]: dbus[133]: [system] Successfully activated service ‘org.freedesktop.UPower’
Jan 02 10:03:56 beaglebone dbus[133]: [system] Successfully activated service ‘org.freedesktop.UPower’
Jan 02 10:04:00 beaglebone node4[131]: [35B blob data]
Jan 02 10:04:00 beaglebone dropbear[400]: PAM password auth succeeded for ‘jxl’ from 192.168.7.1:49323
Jan 02 10:04:00 beaglebone dropbear[467]: lastlog_perform_login: Couldn’t stat /var/log/lastlog: No such file or directory
Jan 02 10:04:00 beaglebone dropbear[467]: lastlog_openseek: /var/log/lastlog is not a file or directory!
Jan 02 10:04:01 beaglebone gdm-simple-greeter[423]: Gtk-WARNING: gtkwidget.c:5709: widget not within a GtkWindow
Jan 02 10:04:02 beaglebone gdm-simple-greeter[423]: WARNING: Unable to load CK history: no seat-id found
Jan 02 10:04:10 beaglebone node4[131]: . …__%|iiiiiii=>,…
Jan 02 10:04:11 beaglebone node4[131]: <iIIviiiiiiiiiillli<.
Jan 02 10:04:11 beaglebone node4[131]: .ivIvilli%||+++++|iillllvs;_
Jan 02 10:04:11 beaglebone node4[131]: …nvlIlv|~.......... -<*IIIvv= Jan 02 10:04:11 beaglebone node4[131]: .)nvvvvv-.... . .. ... ~nvvvo=. Jan 02 10:04:11 beaglebone node4[131]: .__i<iiiii><vvvvn(= . . ..i>, . ... +)nnnv.. Jan 02 10:04:11 beaglebone node4[131]: _i%vvvvllIIlIlIvIvvv( .. . lnnsi . :)vnvnsissvisi>__. Jan 02 10:04:11 beaglebone node4[131]: .<vnvvvvvvIvvvvvvvlvvII;. . |nnvv: . . -)lvvlIIIIlvvIvnnns=_. Jan 02 10:04:11 beaglebone node4[131]: .:vnvvvvvvvvvvvvvIvIvIIvv>: . . . |{}l. . :<lvIvvvvvvvvvvvvvvnov. Jan 02 10:04:11 beaglebone node4[131]: |)nvnvnvnvnvnvvvvvvvvvvvvis . . . =ivvvvvvvvvvvnvnvnvnvnn.. Jan 02 10:04:11 beaglebone node4[131]: .nnnnnnvnnvnvnvnvvvnvvvvvvvnv_ . . :vnvvvvvvvnvnnvnnnnnnnnov; Jan 02 10:04:11 beaglebone node4[131]: :2oonnnnnnnnnvnvnnvnvvnvvvvvIvvi==_i.. . .vvvvvvvvnvnnvnnnnnnnnooooc Jan 02 10:04:11 beaglebone node4[131]: :nnooonnnnnnnnnnvvnvvvvvvvvIvIlIvvnI- .=vvvvvvvvnvnvnnnnnnnnnnooo2( Jan 02 10:04:11 beaglebone node4[131]: |{XooooonnnnnvnvnvvvvvvvIIIIIIIIv|- .<vIlIIvIvvvvvnvvnvnnnnnooo2v( Jan 02 10:04:11 beaglebone node4[131]: .){2ooooonnnnvnvnvvvvvIIIIIIlll+- . =)lllIIvIvvvvvvvnvnnnvnnooo22-
Jan 02 10:04:11 beaglebone node4[131]: -{2oooonnnnnvvvvvvvlIIlllllil==_ ._iIllillllllIvvvvvvnvnnnnoooo-
Jan 02 10:04:11 beaglebone node4[131]: . -.“11oonnvvvnvvIIlIlliliiiiillii||iliiiiiiililllIIvvvvvnnnnn2}(~.
Jan 02 10:04:11 beaglebone node4[131]: . -+~!lvvnvIvIIllliiiii|i|||i||i|||i||iiiiilillIIvvvvvv}|”- .
Jan 02 10:04:11 beaglebone node4[131]: . …–~++++++++~+~+~+~±±+~+~±+~+~++~++++++~~~-:… .
Jan 02 10:04:11 beaglebone node4[131]: . . . . … . . … … … … … . . . .
Jan 02 10:04:11 beaglebone node4[131]: Ajax.org Cloud9 IDE
Jan 02 10:04:11 beaglebone node4[131]: version 0.6
It looks like your issue is this:
Jan 02 10:03:50 beaglebone dropbear[400]: Failed reading ‘/etc/dropbear/dropbear_dss_host_key’, disabling DSS
Others have had similar issues, caused by this this file being of zero length. My replacement BBB came this way. The fix is simple, if you have a serial cable, you can login through uboot and just delete that file and then restart. If you don’t have a serial cable, then you’ll likely have to reflash your board with the latest image.
What’s interesting is that it was working and then stopped. Did you run any software updates?
~ Jason
It occurs to me only after posting that, that you likely have a serial cable since you obviously got the log. Clearly I need to be getting more sleep, lol.