ittsm@ittsm:~$ ssh-keygen -t rsa
ittsm@ittsm:~$ cd .ssh
ittsm@ittsm:~$ less id.rsa.pub
# Windows
Use Puttygen.exe
Public key is this
AAAAB3NzaC1yc2EAAAABJQABBQEAtPCPybnKR6+wZ4PlG0ktseLZFkBgFYnXyYRn
OMztoNIOOVVqJzHMrIB8JjP3MksAuW1ixfqHfrAxEvx/zU6IE1zxRrEfDp3R8nwr
qvJI7hYJcTLNSag8q63qrCmkz8+0BSwt0xSvsLLFWv63XaD5P5NDZjTws+d0ROhH
QtJaamlrNl3Z9lifsP7Drlsqs40Oh+/9nxlwMvy4XS0hLEVf0PHWmT8TzHPmBCNF
yDzu1KQm6ZhBqn++vW2AV/HvPuTRmXbDpOuEvAVZttnwqVkTgUeX3YS4c0UPQh/1
oVvrSPDEd5sU4ZWEw+pU4KayA8UXQq1QRUGgSZR5L6YH/zXqhw==
! Configure Cisco Router
R1(config)#ip ssh pubkey-chain
R1(config-ssh-pubkey)#username admin
R1(config-ssh-pubkey-user)#key-string
R1(config-ssh-pubkey-data)#$HQtJaamlrNl3Z9lifsP7Drlsqs40Oh+/9nxlwMvy4XS0hLEVf0PHWmT8TzHPmB
R1(config-ssh-pubkey-data)#AAAAB3NzaC1yc2EAAAABJQAAAQEAtPCPybnKR6+wZ4PlG0ktseLZFkBgFYnXyYR
R1(config-ssh-pubkey-data)#0xSvsLLFWv63XaD5P5NDZjTws+d0ROhHQtJaamlrNl3Z9lifsP7Drlsqs40Oh+/
R1(config-ssh-pubkey-data)#RUGgSZR5L6YH/zXqhw==
R1(config-ssh-pubkey-data)#exit
R1(config-ssh-pubkey-user)#end
! Verify
R1#show run | section ssh
ip ssh time-out 30
ip ssh authentication-retries 5
ip ssh version 2
ip ssh pubkey-chain
username admin
key-hash ssh-rsa FC906091283098210300AFFFF098209182BBBB0