Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

(Solved) "admin" SSH problems - Debian 8 on AWS EC2

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
(Solved) "admin" SSH problems - Debian 8 on AWS EC2
  • Quote

Post by mehargags » Mon Jul 11, 2016 1:38 pm

Hi,
I'm trying to install VestaCP on and Amazon Web Services EC2 Instance. You have to go to Amazon Market place and install Debian from there which creates the instance with "admin" user.

Now I can successfully install VestaCP with vst-install.sh --force but then it washes away the "admin" user's profile and RSA keys. I took backup of the public Key before installing the second time and restored it but now when I login using it, it shows
Using username "admin".
Server refused our key

What can be the problem ? -- what is the correct way of going about this ?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: (Solved) "admin" SSH problems - Debian 8 on AWS EC2
  • Quote

Post by mehargags » Mon Jul 11, 2016 6:15 pm

Well I solved it. Somehow the pubKey that I copied wasn't complete (wonder how). I used the command

Code: Select all

ssh-keygen -y
to retrieve the pubKey from my PEM file, put that in the authorized_keys and it worked flawless.

Ref: Retrieving the Public Key for Your Key Pair on Linux
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password