Can't log in - I don't have a Password (DigitalOcean SSH)

7 posts / 0 new
Last post
#1 Tue, 06/04/2019 - 21:27
JohnK

Can't log in - I don't have a Password (DigitalOcean SSH)

I'm using DigitalOcean with SSH. This uses lengthy keys and NO password.

How do I access Virtualmin in this instance? It requires my server password which I do not have.

I tried creating a server password and it removed my SSH access. That was a waste of time.

Tue, 06/04/2019 - 22:04
andreychek

Howdy,

You should be able to set a password for the root user, that shouldn't be a problem... you can do that on the command line just by running "passwd root".

Alternatively, you could always add a new system user with sudo access... any user with sudo access is considered a Master Admin in Virtualmin.

-Eric

Wed, 06/05/2019 - 00:46
adamjedgar

Hi john, normally the root username and password is the same one that you use to login to the server SSH via digitalocean.com. Almost all Control panel installers are the same in this way unless the installer asks for you to add a new one during the install process.

If you do have SSH access from D/O or Putty, follow Eric's idea for sure that will sort you out.

If you are unable to login or indeed reset the D/O root user and password for this VPS via digital oceans console, and you did not setup putty via ssh using the Digital Ocean how to documentation https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/create-wi... , then you will be in a bit of bother. Quite often service providers Console do not update any changes you make to your user password when that change is made from outside their own console ssh...so if you inadvertantly change it and then lose it, you will also be locked out of the service providers console. In this scenario, probably a fresh install might be the easiest and fastest option.

Oh i forgot...you did use https://host.fqdn:10000 as the login url for you virtulamin system yes?

Dont forget that in order for the name to work above, your dns propogation has to be completed.

If dns has not yet propogated, you can substitute host.fqdn for the server external ip address..

ie https://ipaddress:10000 (for example https:12.34.56.78:10000)

Also remember to open port 10000 on D/Oceans network firewall (if not already opened)

kind regards, Adam

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Wed, 06/05/2019 - 02:09
JohnK

Thanks Eric and Adam for you swift and informative replies.

In a nutshell, I had followed Eric's advice earlier today and created a password using "passwd root" and that allowed me to access the panel.

For others following in my footsteps, there's some discussion about the poor way DigitalOcean deals with passwords. I've had a droplet with them for years, but I created a new one last night to evaluate Virtuamin and assist another user. When creating the droplet, it automatically picked up my SSH key from the previous install and all was done in less than a minute. From what I can see, no password is issued or needed to access my terminal at DO.

For newbies using Putty or whatever with SSH, just do as Eric says and create a password before running the Virtualmin Install Script.

This video on Youtube was also invaluable: https://www.youtube.com/watch?v=u89HJ0pz8bg&t=402s

Thanks again guys.

Wed, 06/05/2019 - 02:31 (Reply to #4)
adamjedgar

you are welcome John,

I would imagine that perhaps one of the quirks of seting SSH to use hash key instead of normal password woud be that quite often when one sets ssh to use key, it automatically disables password access (a bummer that is)

glad you got sorted out.

BTW, you should check out Vultr ...i find there systems are quite a deal faster than Digital Ocean. Vultr pricing is what drew me into using them.

kind regards Adam

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Sun, 06/16/2019 - 22:29 (Reply to #5)
JohnK

Thanks Adam.

I've been away for a few days, thus my reason for not replying I did look at Vultr and may consider it when my credit with DigitalOcean is exhausted.

John

Tue, 06/18/2019 - 16:15
adamjedgar

You are welcome.

As an after thought...after having used Google Cloud in the past, I still think it's servers are best...I had compatible GCE servers to what i am using now and they were better. I also prefer the Google Cloud console...you can do so much more from there.

Vultr price makes them hard to beat though and that was my reason for change...it's less than half the price and so is ideal for development and small hosting businesses.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Topic locked