I try to access resinified Raspberry Pi 3 using USB serial cable.
It works on vanilla Raspberry Pi jessie OS: I have installed the cable drivers, have /dev/cu.usbserial appeared and after enabling serial port via raspi-config I am able to log in with screen /dev/cu.usbserial 115200.
As soon as I succeeded connecting to container sshd over ethernet and couldn’t connect to host OS sshd, I don’t expect that host OS sshd this time will let me in.
But, frankly speaking, I don’t really understand what should I do to connect to to either of them. I just have screen /dev/<something about usb> 115200 command at hand.
then you should able to connect with screen as you mentioned before. Is this what you have tried? Just checking for clarity.
The other comment:
I’m not sure what do you mean by this. Regardless of what you are running in the user container, the host runs its ssh server on port 22222, which is closed down on the .prod system, and open on a .dev system. Is there something we are missing about what you’ve tried?
@imrehg how do you examine logs when connected to offline .dev device with a cable? I’m using journalctl -ef and the output includes only system stuff and does not include my app’s logs that I’m eager to see.
Run it with journalctl -efa and the docker logs contain your application log. It’s a quirk in docker’s logging with containers run with certain settings.