diff --git a/content/docs/network/cisco-small-business.md b/content/docs/network/cisco-small-business.md index 88a9860..784640b 100644 --- a/content/docs/network/cisco-small-business.md +++ b/content/docs/network/cisco-small-business.md @@ -29,4 +29,23 @@ host sg300-kg-server |sg300-kg-server|SG300-20|1.4.11.5 (2020-04-08)|1.4.11.5| |sg300-dg-1|SG300-10P|1.4.11.5 (2020-04-08)|1.4.11.5| -# Configuring SSH public key authentication \ No newline at end of file +# Configuring SSH public key authentication +Enable SSH and SSH pubkey-authentication with automated login: +``` +sg350-kg-1#configure +sg350-kg-1(config)#ip ssh server +sg350-kg-1(config)#ip ssh pubkey-auth auto-login +sg350-kg-1(config)#crypto key pubkey-chain ssh +``` + +Next, configure the pubkey of type ``rsa`` for the user ``cisco``. You can directly copy the base64 encoded pubkey from your OpenSSH format ``id_rsa.pub`` file without the preceding key-type and the trailing comment. +``` +sg350-kg-1(config-pubkey-chain)#user-key cisco rsa +sg350-kg-1(config-pubkey-key)#key-string +.. enter your pubkey here and terminate with an extra newline + +Fingerprint: MD5:a0:d2:d1:a8:dc:47:35:24:d2:f2:f0:b6:c8:8d:df:6b +sg350-kg-1(config-pubkey-key)#exit +sg350-kg-1(config-pubkey-chain)#exit +sg350-kg-1(config)#exit +``` \ No newline at end of file