首页 > 代码库 > 017 SSH
017 SSH
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname jinyan
jinyan(config)#ip domain-name jinyan.com
jinyan(config)#crypto key ge
jinyan(config)#crypto key generate rsa
The name for the keys will be: jinyan.jinyan.com
Choose the size of the key modulus in the range of 360 to 2048 for
your
General Purpose Keys. Choosing a key modulus greater than 512 may
take
a few minutes.
How many bits in the modulus [512]: 512
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]
jinyan(config)#ip ssh time-out 60
*?? 1 0:1:7.740: RSA key size needs to be at least 768 bits for ssh
version 2
*?? 1 0:1:7.740: %SSH-5-ENABLED: SSH 1.5 has been enabled
jinyan(config)#ip ssh au
jinyan(config)#ip ssh authentication-retries 2
jinyan(config)#line vty 0 15
jinyan(config-line)#transport input ssh
jinyan(config-line)#
来自为知笔记(Wiz)
017 SSH
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。