3
GC97
7y

I have an Webspace for years, today I Just bought a very Small v server so I can play with it a Little bit.
Its cool.
I connected to it via ssh.
Installed everything I needed, then I wanted to allow login only with rsa keys and with No Password. Set it Up, it worked. But it was possible to Login also with the Password even when I forbidden that.
I accidently set PermitRootLogin to No.. Yeah... You know what.. now I Cant Access my Server anymore xD Shit.

Have to reinstall the complete Server..

Comments
  • 1
    No console access?
  • 3
    @spl0 Shit. Yeah, I have an emergeny console on the Web Interface. Shit, I have forgotten it.
    Damn..
    I reinstalled the server and now I'm configuring it (hopefully correct )
  • 1
    Just change the SSH port and you should be fine from all bots
  • 0
    @Linux I successfully reinstalled the v server. Now only my Laptop Can Access the server with my key. Login with Password isn't possible anymore
  • 2
    @GC97
    Let's hope that your laptop stays fine :)
  • 2
    Add a user account to sudoers and disable root login completely?
  • 0
    @kvsm I'm really new with "Server Administration". It is some completly new topic. Never did something like that before. I don't want to Make too much unknown things at the same time. Don't want to accidently Make something wrong again :P
  • 0
    @Linux That is a good Point. I need the keys to authenticate now. What if I Backup the keys on a secure place? (On an USB Stick or something similar, No Cloud ;) ) would that be enough if I would lost All my Data on my Laptop?
  • 0
    @GC97 yeah. And if someone ever snatches your keys if they're not pass protected will have access to your server
Add Comment