Use new format for fingerprints and ssh prompts
This commit is contained in:
parent
a26310fc24
commit
8d9d8050d2
1 changed files with 17 additions and 17 deletions
|
|
@ -305,7 +305,7 @@ After this, you will be presented with a message similar to this:
|
|||
Your identification has been saved in /home/USER/.ssh/id_rsa.
|
||||
Your public key has been saved in /home/USER/.ssh/id_rsa.pub.
|
||||
The key fingerprint is:
|
||||
e7:97:c7:e2:0e:f9:0e:fc:c4:d7:cb:e5:31:11:92:14 USER@penguin.example.com
|
||||
SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0 USER@penguin.example.com
|
||||
The key's randomart image is:
|
||||
+--[ RSA 2048]----+
|
||||
| E. |
|
||||
|
|
@ -366,7 +366,7 @@ After this, you will be presented with a message similar to this:
|
|||
Your identification has been saved in /home/USER/.ssh/id_ecdsa.
|
||||
Your public key has been saved in /home/USER/.ssh/id_ecdsa.pub.
|
||||
The key fingerprint is:
|
||||
fd:1d:ca:10:52:96:21:43:7e:bd:4c:fc:5b:35:6b:63 USER@penguin.example.com
|
||||
SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0 USER@penguin.example.com
|
||||
The key's randomart image is:
|
||||
+--[ECDSA 256]---+
|
||||
| .+ +o |
|
||||
|
|
@ -506,7 +506,7 @@ Enter same passphrase again:
|
|||
Your identification has been saved in /root/.ssh/ca_user_key.
|
||||
Your public key has been saved in /root/.ssh/ca_user_key.pub.
|
||||
The key fingerprint is:
|
||||
11:14:2f:32:fd:5d:f5:e4:7a:5a:d6:b6:a0:62:c9:1f root@host_name.example.com
|
||||
SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0 root@host_name.example.com
|
||||
The key's randomart image is:
|
||||
+--[ RSA 2048]----+
|
||||
| .+. o|
|
||||
|
|
@ -531,7 +531,7 @@ Enter same passphrase again:
|
|||
Your identification has been saved in /root/.ssh/ca_host_key.
|
||||
Your public key has been saved in /root/.ssh/ca_host_key.pub.
|
||||
The key fingerprint is:
|
||||
e4:d5:d1:4f:6b:fd:a2:e3:4e:5a:73:52:91:0b:b7:7a root@host_name.example.com
|
||||
SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0 root@host_name.example.com
|
||||
The key's randomart image is:
|
||||
+--[ RSA 2048]----+
|
||||
| .. |
|
||||
|
|
@ -597,9 +597,9 @@ Where _host_name_ is the host name of a server the is required to authenticate u
|
|||
----
|
||||
~]# scp ~/.ssh/ca_user_key.pub root@host_name.example.com:/etc/ssh/
|
||||
The authenticity of host 'host_name.example.com (10.34.74.56)' can't be established.
|
||||
RSA key fingerprint is fc:23:ad:ae:10:6f:d1:a1:67:ee:b1:d5:37:d4:b0:2f.
|
||||
Are you sure you want to continue connecting (yes/no)? yes
|
||||
Warning: Permanently added 'host_name.example.com,10.34.74.56' (RSA) to the list of known hosts.
|
||||
ECDSA key fingerprint is SHA256:ZYEUaevOAEASvYjm58PiPdMebxhhlaTZBjTMr/N2I3c.
|
||||
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
|
||||
Warning: Permanently added 'host_name.example.com,10.34.74.56' (ECDSA) to the list of known hosts.
|
||||
root@host_name.example.com's password:
|
||||
ca_user_key.pub 100% 420 0.4KB/s 00:00
|
||||
----
|
||||
|
|
@ -705,8 +705,8 @@ To authenticate a host to a user, a public key must be generated on the host, pa
|
|||
----
|
||||
~]# scp /etc/ssh/ssh_host_rsa_key.pub admin@ca-server.example.com:~/keys/ssh_host_rsa_key.pub
|
||||
The authenticity of host 'ca-server.example.com (10.34.74.58)' can't be established.
|
||||
RSA key fingerprint is b0:e5:ea:b8:75:e2:f0:b1:fe:5b:07:39:7f:58:64:d9.
|
||||
Are you sure you want to continue connecting (yes/no)? yes
|
||||
ECDSA key fingerprint is SHA256:ZYEUaevOAEASvYjm58PiPdMebxhhlaTZBjTMr/N2I3c.
|
||||
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
|
||||
Warning: Permanently added 'ca-server.example.com,10.34.74.58' (RSA) to the list of known hosts.
|
||||
admin@ca-server.example.com's password:
|
||||
ssh_host_rsa_key.pub 100% 382 0.4KB/s 00:00
|
||||
|
|
@ -807,7 +807,7 @@ Enter same passphrase again:
|
|||
Your identification has been saved in /home/user1/.ssh/id_rsa.
|
||||
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
|
||||
The key fingerprint is:
|
||||
b1:f8:26:a7:46:87:c3:60:54:a3:6d:85:0d:60:fe:ce user1@host1.example.com
|
||||
SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0 user1@host1.example.com
|
||||
The key's randomart image is:
|
||||
+--[ RSA 2048]----+
|
||||
| oo++. |
|
||||
|
|
@ -946,8 +946,8 @@ To view a certificate, use the [option]`-L` to list the contents. For example, f
|
|||
~]$ ssh-keygen -L -f ~/.ssh/id_rsa-cert.pub
|
||||
/home/user1/.ssh/id_rsa-cert.pub:
|
||||
Type: ssh-rsa-cert-v01@openssh.com user certificate
|
||||
Public key: RSA-CERT 3c:9d:42:ed:65:b6:0f:18:bf:52:77:c6:02:0e:e5:86
|
||||
Signing CA: RSA b1:8e:0b:ce:fe:1b:67:59:f1:74:cd:32:af:5f:c6:e8
|
||||
Public key: RSA-CERT SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0
|
||||
Signing CA: RSA SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0
|
||||
Key ID: "user1"
|
||||
Serial: 0
|
||||
Valid: from 2015-05-27T00:09:16 to 2016-06-09T00:09:16
|
||||
|
|
@ -968,8 +968,8 @@ To vew a host certificate:
|
|||
~]# ssh-keygen -L -f /etc/ssh/ssh_host_rsa_key-cert.pub
|
||||
/etc/ssh/ssh_host_rsa_key-cert.pub:
|
||||
Type: ssh-rsa-cert-v01@openssh.com host certificate
|
||||
Public key: RSA-CERT 1d:71:61:50:05:9b:ec:64:34:27:a5:cc:67:24:03:23
|
||||
Signing CA: RSA e4:d5:d1:4f:6b:fd:a2:e3:4e:5a:73:52:91:0b:b7:7a
|
||||
Public key: RSA-CERT SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0
|
||||
Signing CA: RSA SHA256:y6f0DGlHe28YWotEypnhfk3WLYQ5TgaQwoSlOFwmmm0
|
||||
Key ID: "host_name"
|
||||
Serial: 0
|
||||
Valid: from 2015-05-26T17:19:01 to 2016-06-08T17:19:01
|
||||
|
|
@ -1065,8 +1065,8 @@ The first time you initiate a connection, you will be presented with a message s
|
|||
[subs="quotes"]
|
||||
----
|
||||
The authenticity of host 'penguin.example.com' can't be established.
|
||||
ECDSA key fingerprint is 256 da:24:43:0b:2e:c1:3f:a1:84:13:92:01:52:b4:84:ff.
|
||||
Are you sure you want to continue connecting (yes/no)?
|
||||
ECDSA key fingerprint is SHA256:ZYEUaevOAEASvYjm58PiPdMebxhhlaTZBjTMr/N2I3c.
|
||||
Are you sure you want to continue connecting (yes/no/[fingerprint])?
|
||||
----
|
||||
|
||||
Users should always check if the fingerprint is correct before answering the question in this dialog. The user can ask the administrator of the server to confirm the key is correct. This should be done in a secure and previously agreed way. If the user has access to the server's host keys, the fingerprint can be checked by using the [command]#ssh-keygen# command as follows:
|
||||
|
|
@ -1074,7 +1074,7 @@ Users should always check if the fingerprint is correct before answering the que
|
|||
[subs="attributes"]
|
||||
----
|
||||
~]#{nbsp}ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
|
||||
256 da:24:43:0b:2e:c1:3f:a1:84:13:92:01:52:b4:84:ff (ECDSA)
|
||||
256 SHA256:ZYEUaevOAEASvYjm58PiPdMebxhhlaTZBjTMr/N2I3c no comment (ECDSA)
|
||||
----
|
||||
|
||||
Type `yes` to accept the key and confirm the connection. You will see a notice that the server has been added to the list of known hosts, and a prompt asking for your password:
|
||||
|
|
|
|||
Reference in a new issue