ssh doesn't work after stoping all open-vpn services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
-DESCRIPTION:
I installed and set the OpenVPN server according to the guide:https:/
-VERSION/RELEASE:
Ubuntu 20.04 LTS
Only following additional packages was installed:
OpenSSH 1:8.2p1-4ubuntu0.2
openvpn 2.4.7-1ubuntu2
net-tools 1.60+git2018062
-HOW REPRODUCIBLE:
I managed to reproduce it several times but not on another machine.
-EXPECTED RESULTS:
When all OpenVPN services are stopped and the restart of ssh.service is done, the ssh connection should be working on the default configuration.
-ACTUAL RESULTS:
After stopping all open-VPN services and restart the ssh.service the server does not serve ssh connection well. The attempt to ssh from the client fails with "Resource temporarily unavailable" message. The output of netstat seems normal on the server.
-INFO:
I also installed net-tools 1.60+git2018062
-HOW TO REPRODUCE:
On a fresh install of Ubuntu 20.04 LTS, I installed Openssh-server, and it worked flawlessly. Then I installed OpenVPN and set it following the guide. After that, I restarted the server. Then I turned off the autostart of the OpenVPN and stoped the process with "sudo systemctl stop OpenVPN". After that, I found out that I couldn't ssh to the server and restart didn't help.
tags: | added: openvpn |
Hi Matej,
Thanks for taking the time to file a bug and making Ubuntu server better.
Unfortunately, the site that you're using to set up isn't quite the official one, I am afraid. It uses scripts that aren't really recommended and might lead to problems that we can't help with, for example, what's exactly happened here.
I, thus, would recommend you to follow the official guide we have: /ubuntu. com/server/ docs/service- openvpn
https:/
and see if this works as you expected?
At the moment, I am marking this bug as "Invalid" for the above reasons, but should you still hit the same bug after trying the official guide, let me know here by marking the status back to "New" and then we can work out something together.
Thanks again and hope this helps!