Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to SSH once on VPN #44

Open
TechFanDan opened this issue Jan 7, 2018 · 4 comments
Open

Cannot connect to SSH once on VPN #44

TechFanDan opened this issue Jan 7, 2018 · 4 comments

Comments

@TechFanDan
Copy link

Per the documentation, I used the following command:

ssh [created_user]@10.9.0.1

I keep getting:

ssh: connect to host 10.9.0.1 port 22: Connection refused

Any ideas?

@TechFanDan
Copy link
Author

TechFanDan commented Jan 7, 2018

Sorry, for some reason, sshd hadn't started. Once I started it, it was all fine. Although, I'm wondering why it hadn't started to begin with - it was starting up prior to running this playbook.

Edit: Virtualbox VM in this case, and used the available terminal to make the changes.

@TechFanDan
Copy link
Author

TechFanDan commented Jan 7, 2018

Running journalctl:

error: Bind to port 22 on 10.9.0.1 failed: Cannot assign requested address.
fatal: Cannot bind any address

However, if I start it manually using the Virtualbox console window, it's fine.

Edit: Screenshot of journalctl, pink highlights for openvpn entries. These lead me to believe that OpenVPN hadn't fully started up, thus the IP wasn't ready for sshd?

Edit2: I modified the ssh init script to require OpenVPN: Required-Start: $remote_fs $syslog $openvpn and got the same error.

@qugu
Copy link

qugu commented Aug 27, 2018

Same thing here on Ubuntu 16.04 x64. I had to start the SSH daemon manually using the console.

@smeredith
Copy link

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants