No SSH Access to Ec2 Instance

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
kmook
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 17, 2015 4:17 pm

No SSH Access to Ec2 Instance

Post by kmook » Tue Nov 17, 2015 4:28 pm

I've installed OpenVPN in an EC2 instance with elastic IP in VPC. Setup with no issues, initial SSH connect and key generation went fine. Changed default username. Now I'd like to ssh in to the server again, but I keep getting message that the 'server refused our key'.

I have web access to the server working fine, clients connect to vpn fine as well. How can I regain SSH access to the server?

Skaperen
OpenVPN Power User
Posts: 89
Joined: Fri Aug 05, 2011 3:02 pm
Contact:

Re: No SSH Access to Ec2 Instance

Post by Skaperen » Tue Nov 24, 2015 1:07 pm

possibly a misspelled username but more likely a permission error on the SSH files for the changed user. SSH will skip over risky files with unsafe permissions, even though no other users can login (very impractical to test that), as if these files do not exist. it can refuse the client's identity key for this reason.

most likely not an OpenVPN issue. most OpenVPN setup mistake make things unreachable.

Post Reply