思科设置安全外壳(SSH) -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

   

    设置你的用户名

    R(config)#hostname cisco

    设置域名(在生成加密密码时需要用到用户名和域名)

    R(config)#ip domain-name cisco.com

    为加密会话产生加密密钥:

    R(config)#crypto key generate rsa general-keys modulus 1024

    为SSH会话设置最大空间闲定时器

    R(config)#ip ssh time-out 60

    为SSH连接设计最大失败尝试值:

    R(config)#ip ssh authentication-retries 2

    连接到路由器的vty线路上:

    R(config)#line vty 0 1180

    最后,配置SSH并将telnet作为访问协议:

    R(config-line)#transport input ssh 123456

    加密口令

    R(config)#service password-encryption

    摘自gswljy 的BLOG

最新文章