Learn about Centmin Mod LEMP Stack today
Register Now

Backupsy VPS SSH Key Problem

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

  1. BoostN

    BoostN Active Member

    134
    27
    28
    Aug 19, 2014
    Ratings:
    +42
    Local Time:
    8:02 PM
    1.13.6
    10.0.34
    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

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:02 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Oktay Kilic

    Oktay Kilic New Member

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

    Oktay
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:02 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Active Member

    134
    27
    28
    Aug 19, 2014
    Ratings:
    +42
    Local Time:
    8:02 PM
    1.13.6
    10.0.34
    Which server should the private key be placed on? The backup server or the production server.
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,614
    12,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,683
    Local Time:
    11:02 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    private key usually would be on the server or client server that is doing the connecting from