HP GbE2c HP GbE2c Ethernet Blade Switch for c-Class BladeSystem Application Gu - Page 26

Configuring SSH and SCP features (CLI example), Enabling or disabling SSH - enable ssh

Page 26 highlights

Configuring SSH and SCP features (CLI example) Before you can use SSH commands, use the following commands to turn on SSH and SCP. Enabling or disabling SSH To enable the SSH feature, connect to the switch CLI and enter the following commands: >> # /cfg/sys/sshd/on Current status: OFF New status: ON SSHD# apply (Turn SSH on) (Apply the changes to start generating RSA host and server keys) RSA host key generation starts RSA host key generation completes (lasts 212549 ms) RSA host key is being saved to Flash ROM, please don't reboot the box immediately. RSA server key generation starts RSA server key generation completes (lasts 75503 ms) RSA server key is being saved to Flash ROM, please don't reboot the box immediately Apply complete; don't forget to "save" updated configuration. NOTE: Secure Shell can be configured using the console port only. SSH menus do not display if you access the switch using Telnet or the Browser-based Interface. Enabling or disabling SCP apply and save Enter the following commands from the switch CLI to enable the SCP putcfg_apply and putcfg_apply_save commands: >> # /cfg/sys/sshd/ena (Enable SCP apply and save) >> # /cfg/sys/sshd/dis SSHD# apply (Disable SCP apply and save) (Apply the changes) Configuring the SCP administrator password To configure the scpadmin (SCP administrator) password, first connect to the switch via the RS-232 management console. For security reasons, the scpadmin password can be configured only when connected directly to the switch console. To configure the password, enter the following CLI command. At factory default settings, the current SCP administrator password is admin. >> # /cfg/sys/sshd/scpadm Changing SCP-only Administrator password; validation required. . . Enter current administrator password: Enter new SCP-only administrator password: Re-enter new SCP-only administrator password: New SCP-only administrator password accepted. IMPORTANT: The SCP-only administrator password must be different from the regular administrator password. Accessing the switch 26

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

Accessing the switch 26
Configuring SSH and SCP features (CLI example)
Before you can use SSH commands, use the following commands to turn on SSH and SCP.
Enabling or disabling SSH
To enable the SSH feature, connect to the switch CLI and enter the following commands:
>> # /cfg/sys/sshd/on
(Turn SSH on)
Current status: OFF
New status: ON
SSHD# apply
(Apply the changes to start generating
RSA host and server keys)
RSA host key generation starts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RSA host key generation completes (lasts 212549 ms)
RSA host key is being saved to Flash ROM, please don’t reboot the box
immediately.
RSA server key generation starts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RSA server key generation completes (lasts 75503 ms)
RSA server key is being saved to Flash ROM, please don’t reboot the box
immediately.
-------------------------------------------------------------------------
Apply complete; don’t forget to “save” updated configuration.
NOTE:
Secure Shell can be configured using the console port only. SSH menus do not display if you access the
switch using Telnet or the Browser-based Interface.
Enabling or disabling SCP apply and save
Enter the following commands from the switch CLI to enable the SCP
putcfg_apply
and
putcfg_apply_save
commands:
>> # /cfg/sys/sshd/ena
(Enable SCP apply and save)
>> # /cfg/sys/sshd/dis
(Disable SCP apply and save)
SSHD# apply
(Apply the changes)
Configuring the SCP administrator password
To configure the
scpadmin
(SCP administrator) password, first connect to the switch via the RS-232 management
console. For security reasons, the
scpadmin
password can be configured only when connected directly to the switch
console.
To configure the password, enter the following CLI command. At factory default settings, the current SCP administrator
password is
admin
.
>> # /cfg/sys/sshd/scpadm
Changing SCP-only Administrator password; validation required. . .
Enter current administrator password: <password>
Enter new SCP-only administrator password: <new password>
Re-enter new SCP-only administrator password: <new password>
New SCP-only administrator password accepted.
IMPORTANT:
The SCP-only administrator password must be different from the regular administrator password.