cmb..ssh > ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/cmb/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/cmb/.ssh/id_dsa.
Your public key has been saved in /home/cmb/.ssh/id_dsa.pub.
The key fingerprint is:
SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx cmb@mica
The key's randomart image is:
+---[DSA 1024]----+
| o+ . |
| . . . + |
| . . . o . |
| . . . . |
| . o o oS . |
| + + @.. . . .|
| .+ X *.. + .=E.|
| . .+ =...+ +=o.o|
| ..o=o....+. .o |
+----[SHA256]-----+
cmb..ssh > ls
authorized_keys id_dsa id_dsa.pub
cmb..ssh > ssh-copy-id opal.local
The authenticity of host 'opal.local (192.168.0.24)' can't be established.
ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
cmb@opal.local's password: ********
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'opal.local'"
and check to make sure that only the key(s) you wanted were added.
cmb..ssh > ssh opal.local
cmb@opal.local's password: