Transferring ssh key to another car



  • I got the key on the work car, and I need that key from the house. I brought the key home, copied in a .ssh catalogue.

    I did:

    ssh-add .ssh/background
    

    I'm checking the project says:

    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/ubuntu/.ssh/background
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    debug1: Offering RSA public key: /home/ubuntu/.ssh/id_rsa
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    debug1: Trying private key: /home/ubuntu/.ssh/id_dsa
    debug1: Trying private key: /home/ubuntu/.ssh/id_ecdsa
    debug1: Trying private key: /home/ubuntu/.ssh/id_ed25519
    debug1: Next authentication method: password
    

    I mean, it's gonna break to standard id_rsa, and mine doesn't want to check. What's wrong?



  • debug1: Offering RSA public key: /home/ubuntu/.ssh/background
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
    

    proposed for authentication of the public part of the secret key stored in the file /home/ubuntu/.ssh/background

    removed sshd She's been rejected. If there's any reason you can find out in this car in the slog where the information comes from. sshddebian-core Distributives are usually /var/log/auth.log

    Possible common causes:

    • Connect to the wrong user required
    • the user does not have a public part of the key used in the ~/.ssh/authorized_keys (sighs)~/.ssh/authorized_keys2)
    • The user has not been blocked from access to the catalogue by anyone other than him. ~/.ssh and its contents:

      $ chmod -R go= ~/.ssh
      

    • This user has a catalogue ~/.ssh (or its contents) belongs to another user (e.g., root😞

      $ sudo chown -R $USER ~/.ssh


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2