今天公司新买了一台cisco路由器,让我配置ssh,曾经配置很多网络设备的我,那刻竟然忘记了命令了(汗颜了),看来记性真的不行了,写下来吧供以后翻阅。
----------------------H3C ssh配置-------------------------------------------------
undo telnet server enable
public-key local create rsa
ssh server enable
user-interface vty 0 4
authentication-mode scheme
protocol inbound ssh
ssh user admin service-type stelnet authentication-type password
ssh client source interface loopback0
local-user admin
password cipher h3c
service-type ssh level 3

-----------------------H3C交换机ssh最高权限配置------------------------------------
int LoopBack0
ip add 1.1.1.1 32
undo telnet server enable    
public-key local create rsa    
ssh server enable    
user-interface vty 0 4    
authentication-mode scheme    
protocol inbound ssh    
ssh user admin service-type stelnet authentication-type password    
user privilege level 3
ssh client source interface loopback0    
local-user admin    
password cipher redhat
service-type ssh    
authorization-attribute level 3
-----------------------H3C snmp配置------------------------------------------
snmp-agent
snmp-agent sys-info version v3
snmp-agent group v3 gaby authentication write-view gabylinux
snmp-agent target-host trap address udp-domain 1.1.1.1 params securityname gaby v3    authentication    
snmp-agent usm-user v3 gaby@root    gaby authentication-mode sha gabylinux
1.1.1.1表示网管服务器地址
------------------------ cisco ssh配置----------------------------------------------------------------------
ip domain-name cisco.com
aaa new-model
aaa authentication login default local
username gaby    password 0 gabylinux
line vty 0 4
transport input ssh
crypto key generate rsa general-keys modulus 1024
注意要配置进入特权模式密码,不然时登陆不了的。