Private/Public key authentication not working after reinstalling ubuntu

Wipster

I backed up my ~/.ssh folder and reinstalled ubuntu 13.10 on my machine. Then I just copied the .ssh folder back into my home folder and tried to connect to my server. I'm getting the following error: "Permission denied (publickey).". This is my .ssh folder on the client machine:

drwx------  2 user group 4096 Feb 25 21:21 . drwxr-xr-x 24 user group 4096 Feb 27 10:48 ..
-rw-r--r--  1 user group 1992 Feb  4 08:08 known_hosts
-rw-------  1 user group 3326 Nov 25 17:37 key
-rw-r--r--  1 user group 747 Nov 25 17:37 key.pub

Everything was working fine before the new installation. Do I have to somehow register the private key at the client machine? The server is a 12.04.

c4f4t0r

ssh search for private keys in the following mode .ssh/id_rsa && .ssh/id_dsa and .ssh/id_ecdsa in newer ssh versions.

but your private key has an alternative name, so you need to use ssh with -i option

try to connect using this command ssh -vvv -i .ssh/key remoteserver

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Private/Public key authentication not working after reinstalling ubuntu

From Dev

Postfix Mail Server is not working in Ubuntu after reinstalling the MySql

From Dev

No networking after reinstalling Ubuntu

From Dev

Recover Windows after reinstalling Ubuntu

From Dev

mongodb service fail after reinstalling it on ubuntu

From Dev

lost HDD Space after reinstalling ubuntu

From Dev

Merge two filesystem after reinstalling Ubuntu

From Dev

GRUB not appearing after reinstalling Ubuntu in dual boot

From Dev

ssh public key authentication not working

From Dev

ssh public key authentication not working

From Dev

Is it possible to recover data after reinstalling ubuntu on same drive

From Dev

Mouse pointer invisible after reinstalling Unity on top of Gnome in Ubuntu 13.10

From Dev

Mouse pointer invisible after reinstalling Unity on top of Gnome in Ubuntu 13.10

From Dev

Default path changed after uninstalling python and reinstalling ubuntu-desktop

From Dev

Is it possible to recover data after reinstalling ubuntu on same drive

From Dev

after reinstalling ubuntu my previous home folder mounts as an externall drive

From Dev

Loss of access to data after reinstalling Ubuntu 15.10 and Windows 10

From Dev

Trouble reinstalling MySQL 5.7 after uninstalling on Ubuntu 16.04

From Dev

Ubuntu login loop 16.04 Error after reinstalling lightdm

From Dev

Is it safe to use a second hand laptop after reinstalling ubuntu on it

From Dev

"/home partition" after formating and reinstalling Ubuntu 18.04 on "ext4 /"

From Dev

Remove obsolete boot entries after reinstalling Windows and Ubuntu 18.04

From Dev

Ubuntu 18.04 booting in console mode even after reinstalling drivers

From Dev

Default path changed after uninstalling python and reinstalling ubuntu-desktop

From Dev

Reinstalling Ubuntu 13.10

From Dev

GRUB Help and Reinstalling Ubuntu

From Dev

Does Ubuntu require reinstalling?

From Dev

Reinstalling Ubuntu with a dual boot

From Dev

Reinstalling Ubuntu 13.10

Related Related

  1. 1

    Private/Public key authentication not working after reinstalling ubuntu

  2. 2

    Postfix Mail Server is not working in Ubuntu after reinstalling the MySql

  3. 3

    No networking after reinstalling Ubuntu

  4. 4

    Recover Windows after reinstalling Ubuntu

  5. 5

    mongodb service fail after reinstalling it on ubuntu

  6. 6

    lost HDD Space after reinstalling ubuntu

  7. 7

    Merge two filesystem after reinstalling Ubuntu

  8. 8

    GRUB not appearing after reinstalling Ubuntu in dual boot

  9. 9

    ssh public key authentication not working

  10. 10

    ssh public key authentication not working

  11. 11

    Is it possible to recover data after reinstalling ubuntu on same drive

  12. 12

    Mouse pointer invisible after reinstalling Unity on top of Gnome in Ubuntu 13.10

  13. 13

    Mouse pointer invisible after reinstalling Unity on top of Gnome in Ubuntu 13.10

  14. 14

    Default path changed after uninstalling python and reinstalling ubuntu-desktop

  15. 15

    Is it possible to recover data after reinstalling ubuntu on same drive

  16. 16

    after reinstalling ubuntu my previous home folder mounts as an externall drive

  17. 17

    Loss of access to data after reinstalling Ubuntu 15.10 and Windows 10

  18. 18

    Trouble reinstalling MySQL 5.7 after uninstalling on Ubuntu 16.04

  19. 19

    Ubuntu login loop 16.04 Error after reinstalling lightdm

  20. 20

    Is it safe to use a second hand laptop after reinstalling ubuntu on it

  21. 21

    "/home partition" after formating and reinstalling Ubuntu 18.04 on "ext4 /"

  22. 22

    Remove obsolete boot entries after reinstalling Windows and Ubuntu 18.04

  23. 23

    Ubuntu 18.04 booting in console mode even after reinstalling drivers

  24. 24

    Default path changed after uninstalling python and reinstalling ubuntu-desktop

  25. 25

    Reinstalling Ubuntu 13.10

  26. 26

    GRUB Help and Reinstalling Ubuntu

  27. 27

    Does Ubuntu require reinstalling?

  28. 28

    Reinstalling Ubuntu with a dual boot

  29. 29

    Reinstalling Ubuntu 13.10

HotTag

Archive