Get the most out of your Centmin Mod LEMP stack
Become a Member

Backupsy VPS SSH Key Problem

Discussion in 'System Administration' started by BoostN, Oct 3, 2014.

  1. BoostN

    BoostN Member

    88
    18
    8
    Aug 19, 2014
    Ratings:
    +22
    Local Time:
    3:34 PM
    1.11.1
    10.0.28
    I purchased the backupsy VPS and can't seem to get putty to connect VIA SSH with my keys. I've followed multiple tutorials to double check myself and I still can't get it to connect (Putty tells me "Server refused our key").

    Tut: How To Create SSH Keys with PuTTY to Connect to a VPS | DigitalOcean

    Any idea. I created a fresh key within puttygen and still no luck. I'm able to use the private/pub key for my digital ocean VPS's and my ServInt server with no problems.

    I've attached the ssdh_config file for reference. File permissions:
    .ssh 0700
    authorized_keys 0644

    This is not the default ssh_config file, it did not work. I made my changes based off my DO VPS in which my keys do work with..

    Thanks!
     

    Attached Files:

  2. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    6:34 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. Oktay Kilic

    Oktay Kilic New Member

    2
    1
    3
    Oct 4, 2014
    Ratings:
    +1
    Local Time:
    10:34 PM
    EL6 doesn't ship with the ssh key file in selinux so that is likely the issue. Try running: restorecon -R -v ~/.ssh

    Oktay
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    6:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for taking the time to join and reply @Oktay Kilic :)

    FYI, Centmin Mod LEMP stack disables selinux prior to Centmin Mod installation on a VPS server so probably isn't the issue.
     
  5. BoostN

    BoostN Member

    88
    18
    8
    Aug 19, 2014
    Ratings:
    +22
    Local Time:
    3:34 PM
    1.11.1
    10.0.28
    Which server should the private key be placed on? The backup server or the production server.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    6:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    private key usually would be on the server or client server that is doing the connecting from