Home > Database > Mysql Tutorial > cisco路由器SSH登陆基本配置

cisco路由器SSH登陆基本配置

WBOY
Release: 2016-06-07 15:02:03
Original
1558 people have browsed it

cisco 路由器 SSH 登陆 基本 配置 1、username sunchao password cisco 2、ip domain-name sunchao.com (这个可以随便定义) www.2cto.com 3、crypto key generate rsa (至于加密位数自己随意选,默认是512) 4、access-list 10 permit 192.168.1.0 0.0.0.255


cisco路由器SSH登陆基本配置

 

1、username sunchao password cisco 

2、ip domain-name sunchao.com (这个可以随便定义)

  www.2cto.com  

3、crypto key generate rsa (至于加密位数自己随意选,默认是512)

4、access-list 10 permit 192.168.1.0 0.0.0.255 (允许一个网段访问)

或者 允许单个ip地址    www.2cto.com  

 

  access-list 10 remark Hosts allowed to SSH

  access-list 10 permit host 192.168.1.1

  access-list 10 permit host 192.168.1.2 

R2(config)#line vty 0 4

R2(config-line)#login local 

R2(config-line)#transport input ssh 

R2(config-line)#access-class 10 in

R2(config)#ip ssh time-out 30 超时30秒

R2(config)#ip ssh version 2

 

R1登陆 

>enable 

#ssh ?

R1#ssh -l sunchao 192.168.1.1

Open

Password:

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template