5 added 146 characters in body
source | link

Even if i copy the rsa key from the .pub file and paste it on the remote's machine .ssh/authorized_keys it still keeps asking me for password.

Thanks

Thanks

Even if i copy the rsa key from the .pub file and paste it on the remote's machine .ssh/authorized_keys it still keeps asking me for password.

Thanks

4 added 97 characters in body
source | link
[root@search-uk-1 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): search-uk-1-rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in search-uk-1-rsa/root/.ssh/id_rsa.
Your public key has been saved in search-uk-1-rsa/root/.ssh/id_rsa.pub.
The key fingerprint is:
4cca:88ab:894d:ca95:1da4:97ee:3347:c467:b10c:b2e1:d923:fbf3:4e73:f846:1c67:cd7e root@search-uk-1.int.incredimail                                                                                                                                   .com
The key's randomart image is:
+--[ RSA 2048]----+
|    .o.             |
|   ..+o.     .        |
|       .oo*. .        |
|... B oo    oo+.. o    |
|.. + .  S  .+S= +     |
|      o o   o+ * . E  |
|     o o E=. *   .   |
|      =+ ..        |
|      .=.+.         |
+-----------------+
[root@search-uk-1 .ssh]# ssh-copy-id root@10.0.80.11root@sawmill
root@10.0.80.11'sroot@sawmill's password:
Now try logging into the machine, with "ssh 'root@10.0.80.11'"'root@sawmill'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@search-uk-1 .ssh]# ssh root@10root@sawmill
Enter passphrase for key '/root/.0ssh/id_rsa':
Last login: Mon Nov  5 11:32:33 2012 from search-uk-1.80int.11incredimail.com
[root@sawmill ~]# exit
logout
Connection to sawmill closed.
[root@search-uk-1 .ssh]# ssh root@sawmill
Enter passphrase for key '/root/.ssh/id_rsa':
[root@search-uk-1 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): search-uk-1-rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in search-uk-1-rsa.
Your public key has been saved in search-uk-1-rsa.pub.
The key fingerprint is:
4c:88:89:ca:1d:97:33:c4:b1:b2:d9:fb:4e:f8:1c:cd root@search-uk-1.int.incredimail                                                                                                                                   .com
The key's randomart image is:
+--[ RSA 2048]----+
|    .o.          |
|   ..+o.         |
|  .oo*. .        |
|... B oo         |
|.. + .  S        |
|      o o        |
|     o o E       |
|      = .        |
|      .=         |
+-----------------+
[root@search-uk-1 .ssh]# ssh-copy-id root@10.0.80.11
root@10.0.80.11's password:
Now try logging into the machine, with "ssh 'root@10.0.80.11'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@search-uk-1 .ssh]# ssh root@10.0.80.11
Enter passphrase for key '/root/.ssh/id_rsa':
[root@search-uk-1 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
ca:ab:4d:95:a4:ee:47:67:0c:e1:23:f3:73:46:67:7e root@search-uk-1.int.incredimail.com
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|        .        |
|       ...       |
|      oo+.. o    |
|      .+S= +     |
|     o o+ * . E  |
|      =. *   .   |
|     + ..        |
|    ..+.         |
+-----------------+
[root@search-uk-1 .ssh]# ssh-copy-id root@sawmill
root@sawmill's password:
Now try logging into the machine, with "ssh 'root@sawmill'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@search-uk-1 .ssh]# ssh root@sawmill
Enter passphrase for key '/root/.ssh/id_rsa':
Last login: Mon Nov  5 11:32:33 2012 from search-uk-1.int.incredimail.com
[root@sawmill ~]# exit
logout
Connection to sawmill closed.
[root@search-uk-1 .ssh]# ssh root@sawmill
Enter passphrase for key '/root/.ssh/id_rsa':
3 added 1459 characters in body
source | link

Edit: I don't know why it was voted down... i think it's a legitimate question. Please tell me please what i'm doing wrong:

[root@search-uk-1 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): search-uk-1-rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in search-uk-1-rsa.
Your public key has been saved in search-uk-1-rsa.pub.
The key fingerprint is:
4c:88:89:ca:1d:97:33:c4:b1:b2:d9:fb:4e:f8:1c:cd root@search-uk-1.int.incredimail                                                                                                                                   .com
The key's randomart image is:
+--[ RSA 2048]----+
|    .o.          |
|   ..+o.         |
|  .oo*. .        |
|... B oo         |
|.. + .  S        |
|      o o        |
|     o o E       |
|      = .        |
|      .=         |
+-----------------+
[root@search-uk-1 .ssh]# ssh-copy-id root@10.0.80.11
root@10.0.80.11's password:
Now try logging into the machine, with "ssh 'root@10.0.80.11'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@search-uk-1 .ssh]# ssh root@10.0.80.11
Enter passphrase for key '/root/.ssh/id_rsa':

Thanks

Thanks

Edit: I don't know why it was voted down... i think it's a legitimate question. Please tell me please what i'm doing wrong:

[root@search-uk-1 .ssh]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): search-uk-1-rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in search-uk-1-rsa.
Your public key has been saved in search-uk-1-rsa.pub.
The key fingerprint is:
4c:88:89:ca:1d:97:33:c4:b1:b2:d9:fb:4e:f8:1c:cd root@search-uk-1.int.incredimail                                                                                                                                   .com
The key's randomart image is:
+--[ RSA 2048]----+
|    .o.          |
|   ..+o.         |
|  .oo*. .        |
|... B oo         |
|.. + .  S        |
|      o o        |
|     o o E       |
|      = .        |
|      .=         |
+-----------------+
[root@search-uk-1 .ssh]# ssh-copy-id root@10.0.80.11
root@10.0.80.11's password:
Now try logging into the machine, with "ssh 'root@10.0.80.11'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@search-uk-1 .ssh]# ssh root@10.0.80.11
Enter passphrase for key '/root/.ssh/id_rsa':

Thanks

2 Fix grammar and minor typos.
source | link
1
source | link