SSH Permission denied over OpenVPN
Posted: 26 Apr 2019, 19:26
Hi there,
I have the following setup:
- RevPi 3 Connect -> A: Connected to local S7-CPU; B: Connected via Teltonika RUT 955 to cellular network (T-Mobile).
- Teltonika RUT 955 -> T-Mobile (LTE)
The RevPi is located "somewhere" in the field, where it is only possible to have internet access over cellular network. In order to still have SSH access to the RevPi, I set up a VPN Network, where the RevPi is connected as a VPN-Client to one of my servers. I am then connecting to the RevPi over ssh through the VPN Server.
The problem is:
When the RevPi is started/restarted, I can connect through SSH without any problem. However, once I disconnect the SSH and try to reconnect, I get "Permission denied (publickey)". It then takes several hours to sometimes days until I can reconnect again. However, during the time when I can not connect, the VPN connection is still up. Even when I restart the VPN-Server, the RevPi reconnects again, and is pingable (but no SSH connection possible -> permission denied). Erasing the hosts in the .known_hosts file on the Server does not help...
I don't really know if this is a RevPi related issue, or a general operating system thing. However, I have another regular Raspberry Pi, that has the same VPN Configuration, which I can perfectly connect to over SSH over and over again.
Right now, I do not have access to the RevPi. I am looking for ideas on where I can search on the RevPi once I get a connection again... The connection is not ultra-stable, so I usually don't get hours to debug the device...
Do you have any idea on what could cause this problem? Where can I look for why it gives me a "Permission denied"?
I am connecting over the pi user with the default password. When the device was still on my LAN, I had no issues connecting over SSH.
Any help is much appreciated!!
I have the following setup:
- RevPi 3 Connect -> A: Connected to local S7-CPU; B: Connected via Teltonika RUT 955 to cellular network (T-Mobile).
- Teltonika RUT 955 -> T-Mobile (LTE)
The RevPi is located "somewhere" in the field, where it is only possible to have internet access over cellular network. In order to still have SSH access to the RevPi, I set up a VPN Network, where the RevPi is connected as a VPN-Client to one of my servers. I am then connecting to the RevPi over ssh through the VPN Server.
The problem is:
When the RevPi is started/restarted, I can connect through SSH without any problem. However, once I disconnect the SSH and try to reconnect, I get "Permission denied (publickey)". It then takes several hours to sometimes days until I can reconnect again. However, during the time when I can not connect, the VPN connection is still up. Even when I restart the VPN-Server, the RevPi reconnects again, and is pingable (but no SSH connection possible -> permission denied). Erasing the hosts in the .known_hosts file on the Server does not help...
I don't really know if this is a RevPi related issue, or a general operating system thing. However, I have another regular Raspberry Pi, that has the same VPN Configuration, which I can perfectly connect to over SSH over and over again.
Right now, I do not have access to the RevPi. I am looking for ideas on where I can search on the RevPi once I get a connection again... The connection is not ultra-stable, so I usually don't get hours to debug the device...
Do you have any idea on what could cause this problem? Where can I look for why it gives me a "Permission denied"?
I am connecting over the pi user with the default password. When the device was still on my LAN, I had no issues connecting over SSH.
Any help is much appreciated!!