Secure Remote Access on HPE Comware v5 Switches
How to configure SSH, HTTPS, local user accounts, RSA keys, and console authentication on HPE Comware v5 switches.
Legacy platform.
Comware v5 is end-of-sale on most platforms. This guide is kept for anyone still running it; check syntax against your software release, and see the Comware v7 guides for current platforms.
By default, HPE Comware v5 has no remote access authentication configured. This guide covers local user setup, SSH, HTTPS, and console port protection.
Security note: Use 2048-bit RSA minimum. The 1024-bit size shown below is cryptographically weak and should not be used on switches still in active service.
Create a local user #
system-view
local-user admin
password simple PASSWORD
authorization-attribute level 3
service-type web terminal
service-type sshUse password cipher rather than password simple in production to store a hashed value.
Generate RSA keys #
public-key local create rsa
2048Configure VTY access #
user-interface vty 0 15
authentication-mode scheme
user privilege level 3
protocol inbound ssh
ssh server enableDisable Telnet #
undo telnet server enableSecure the console port #
user-interface aux 0
authentication-mode scheme
user privilege level 3Disable HTTP, enable HTTPS #
undo ip http enable
ip https enable