It should be noted that if I manually invoke AUTOSSH after the connection is re-established, everything works as expected. I have no control or "ping" port available on the Amazon server. I loaded AUTOSSH (rather than just SSH) in an attempt to fix this, but it doesn't work (regardless of the timeouts I select). Everything works except the SSH connection. The USB "dongle DOES reconnect to the cell network - I can ping servers, etc. I need the Raspberry to automatically reconnect to the Amazon server (over SSH) anytime a connection is possible. Sometimes the 4G/LTE signal gets blocked and re-appears a few seconds to a few minutes later. On some power ups, the system simply hangs at this point forever. "A start job is running on dhcpcd on all interfaces (xx/yy)" (where "xx" and "yy" are times). I have added a "SLEEP 16" command in rc.local because the modem boots more slowly than the Raspberry 3 (running STRETCH).īut I have several problems that I can't seem to figure out: The "dongle" looks like eth0 or eth1 to the Raspberry pi and will usually connect to the carrier during boot. And I'm using a 4G/LTE USB "dongle" to make the connection. You may validate that the tunnel is working OK by connecting to the remote public server and trying to log back into the RPi through the tunnel.I'm using a Raspberry pi to connect to a reverse SSH tunnel setup on an Amazon ec2 server. Jun 22 14:14:20 rpi systemd: Started AutoSSH tunnel service on remote port 22221. Jun 22 14:14:18 rpi systemd: Started AutoSSH tunnel service on remote port 22221. Jun 22 14:13:35 rpi autossh: ssh child pid is 2849 Jun 22 14:13:35 rpi autossh: starting ssh (count 1) Jun 22 14:13:35 rpi autossh: port set to 0, monitoring disabled ├─2845 /usr/lib/autossh/autossh -M 0 -o ServerAliveInterval 90 -o ServerAliveCountMax 3 -NR 22221:localhost:22 /usr/bin/ssh -o ServerAliveInterval 90 -o ServerAliveCountMax 3 -NR 22221:localhost:22 22 14:13:35 rpi systemd: Started AutoSSH tunnel service on remote port 22221. Loaded: loaded (/etc/systemd/system/rvice enabled)Īctive: active (running) since Thu 14:13:35 CEST 56s agoĬGroup: /system.slice/rvice
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |