-
-
Save yas-nyan/db42f5c9d6f9be30e23fb931d716ed12 to your computer and use it in GitHub Desktop.
Cisco IOS で公開鍵認証でのSSHを有効化する ref: https://qiita.com/yas-nyan/items/f8d1a1620d371a1f4235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1# exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip ssh server algorithm authentication password publickey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)enable secret ぱすわーどは半角英数記号で書く |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)#hostname cisco1 | |
cisco1(config)#crypto key generate rsa | |
<中略> | |
How many bits in the modulus [512]: 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)# ip ssh version 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)#line vty 0 4 | |
cisco1(config-line)#login local | |
cisco1(config-line)#transport input ssh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Macbook% ssh ユーザー名@ルーターのIPアドレス | |
cisco1# | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)username ユーザー名 privilege 15 secret ぱすわーどは半角英数記号で書く |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cisco1(config)username ユーザー名 secret ぱすわーどは半角英数記号で書く |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment