这里介绍了启用SSH ,但它只讨论了路由器和交换机。思科ASA怎么样?今天,我不得不学习如何使用CLI而不是ASDM来学习它,因为我无法在ASDM中找到相当于 aaa authenticationssh console LOCAL和 crypto key gen rsa mod 4096 的地方。由于我是思科ASA的新手,因此我并不精通在CLI下发布命令。如果你处于类似的情况,我建议买这本书。话虽如此,我在检查规则,NAT等时总是使用ASDM,但我可以理解一些CLI配置。不用多说,这里是如何在Cisco ASA上启用SSH。
1 2 3 4 5 6 7 8 9 10 | ASA-5505# conf t ASA-5505 (config)# enable password password_here encrypted ASA-5505 (config)# username user_here password password_here encrypted privilege 15 ASA-5505 (config)# aaa authentication ssh console LOCAL ASA-5505 (config)# ssh 192.168.0.10 255.255.255.0 inside ! Obviously, you can add/change IPs that you want to allow SSH from. ASA-5505 (config)# domain-name networkjutsu.com ASA-5505 (config)# crypto key gen rsa mod 4096 ASA-5505 (config)# ssh version 2 ASA-5505 (config)# ssh key-exchange group dh-group14-sha1 |
如您所知,启用SSH并禁用Telnet是个好主意。由于ASA默认情况下不启用SSH和/或Telnet,因此您不必担心。但是如果你必须在它们之间做出选择,当然要选择SSH。
我希望这对你有所帮助,谢谢你的阅读!
评论专区