public-key local destroy rsa
<ACX> system-view
System View: return to User View with Ctrl+Z.
[ACX]
Create local key pairs.
[AC1] public-key local create rsa
Warning: The local key pair already exist.
Confirm to replace them? [Y/N]:y
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Stakeholder use only. Reproduction in whole or in part without permission is prohibited.
HP Unified Wired-Wireless Networks and BYOD
L5.1-14 Rev. 14.31
Task 3: Use the CLI to configure remote SSH access
Even without doing the previous task many of the steps are already configured
on the controller engine, however steps 1 and 2 below are still required on the
controller. After you perform Steps 1 and 2 on the controller engine, a default
username of admin and password admin allow SSH to the controller engine.
The switching engine requires you to perform all of the following steps to
completely enable SSH. Use the following steps to enable or verify SSH on
either the controller engine or switching engine
1. From the CLI of AC1, enter the system-view of the AC1 access controller
engine and create a local public-key pair. Note that this was done in the web
portion above but can be repeated here.
<ACX> system-view
System View: return to User View with Ctrl+Z.
[ACX]
Create local key pairs.
[AC1] public-key local create rsa
Warning: The local key pair already exist.
Confirm to replace them? [Y/N]:y
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]: <cr>
Generating Keys...
+++++++++++++++
++++++++++++++
+++
+++++++++
2. Enable the SSH server.
[AC1] ssh server enable
Info: SSH server has been enabled.
3. Enter one or more VTY user interface views.
[AC1] user-interface vty 0 4
[AC1-ui-vty0-4]
4. Enable scheme authentication to require a username and password.
[AC1-ui-vty0-4] authentication-mode scheme
5. Enable the user interfaces to support both Telnet and SSH.
[AC1-ui-vty0-4] protocol inbound ?
all All protocols
ssh SSH protocol
HP C&L Stakeholder use only. Reproduction in whole or in part without permission is prohibited.
Wireless
建立帳號 並指定帳號使用SSH 連線
[AC1] local-user ssh-user2
New local user added.
[AC1-luser-ssh-user2] password simple password
10. Set the authorization-attribute level to 0. The authorization-attribute level can
be a value from 0 to 3, with 0 being the default.
[AC1-luser-ssh-user2] authorization-attribute level 0
11. Set the service-type for what the local-user can access. Set this to Telnet or
SSH.
[AC1-luser-ssh-user2] service-type telnet ssh
[AC1-luser-ssh-user2] quit