понедельник, 2 ноября 2015 г.

Настройка SSH-доступа для коммутаторов компании HP


Для коммутаторов серии HP ProCurve


Генерация пары ключей для SSH (хранится во flash):
switch(config)# crypto key generate ssh
Включение SSH:
switch(config)# ip ssh 
Просмотр настроек SSH и активных сессий (ssh и telnet сессии можно посмотреть выполнив команду show telnet):
switch(config)# show ip ssh
Отключение Telnet доступа
switch(config)# no telnet-server
Сохранение настроек
switch(config)# write memory
 Просмотр открытого ключа коммутатора:
switch(config)# show crypto host-public-key
Удаление ключа (автоматически отключает SSH):
switch(config)# crypto key zeroize ssh
 
 

Для коммутаторов серии HP 4200

 
<4200G>system-view
rsa local-key-pair create
1024
user-interface vty 0 4
authentication-mode scheme
protocol inbound ssh
local-user networkadmin
password simple MySSHpassword
service-type ssh
quit
ssh user networkadmin authentication-type password
save

NOTE: if you still have web access enabled for the switch, 
this newly configured username and password will be able 
to access the web interface!
 

Комментариев нет:

Отправить комментарий