Skip to content

Instantly share code, notes, and snippets.

@yas-nyan
Last active September 4, 2019 06:08
Show Gist options
  • Save yas-nyan/db42f5c9d6f9be30e23fb931d716ed12 to your computer and use it in GitHub Desktop.
Save yas-nyan/db42f5c9d6f9be30e23fb931d716ed12 to your computer and use it in GitHub Desktop.
Cisco IOS で公開鍵認証でのSSHを有効化する ref: https://qiita.com/yas-nyan/items/f8d1a1620d371a1f4235
cisco1# exit
ip ssh server algorithm authentication password publickey
cisco1(config)enable secret ぱすわーどは半角英数記号で書く
cisco1(config)#hostname cisco1
cisco1(config)#crypto key generate rsa
<中略>
How many bits in the modulus [512]: 2048
cisco1(config)#line vty 0 4
cisco1(config-line)#login local
cisco1(config-line)#transport input ssh
Macbook% ssh ユーザー名@ルーターのIPアドレス
cisco1#
cisco1(config)username ユーザー名 privilege 15 secret ぱすわーどは半角英数記号で書く
cisco1(config)username ユーザー名 secret ぱすわーどは半角英数記号で書く
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment