Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin Learning about private/public keys. Some issues

Discussion in 'System Administration' started by elargento, Mar 5, 2018.

  1. elargento

    elargento Member

    332
    17
    18
    Jan 4, 2016
    Ratings:
    +42
    Local Time:
    4:30 PM
    10
    I'm trying to create backups on backupsy from a server with WHM

    I could complete step 2:
    Set up SSH public-key authentication to connect to a remote system
    upload_2018-3-4_13-38-55.png
    but then, after step 3 (after delete the other server password) I get the following error:
    upload_2018-3-4_13-39-16.png

    Code:
    stdin: is not a tty
    /root/.ssh/id_rsa_backupsy.pub: No such file or directory
    However, the file is on the cpanel server:
    upload_2018-3-4_13-38-28.png

    Any suggestions?
     
  2. Meirami

    Meirami Member

    63
    7
    8
    Dec 21, 2017
    Ratings:
    +20
    Local Time:
    10:30 PM
    To me it looks like there's no such a file... Only:
    id_rsa
    id_rsa_godaddy
    id_rsa_godaddy.pub
    backupsy
    backupsy.pub

    But no id_rsa_backupsy.pub
     
  3. elargento

    elargento Member

    332
    17
    18
    Jan 4, 2016
    Ratings:
    +42
    Local Time:
    4:30 PM
    10
    Yes, that's the problem. Id_rsa_backupsy.pub should be copied to the other server but instead of get "the file has been created" or something like that I get the error saying the file doesn't exist
     
  4. Meirami

    Meirami Member

    63
    7
    8
    Dec 21, 2017
    Ratings:
    +20
    Local Time:
    10:30 PM
    Are you sure you created id_rsa_backupsy.pub public keyfile?
    Not shorter filename backupsy.pub?

    Because there's no id_rsa_backupsy (without extension) file either which should be private key.
    I think you have backupsy as a private key and backupsy.pub as a public key.
     
    • Agree Agree x 1
..