Installation and Getting Started Guide
name and password. Without a user name and password, a user is not granted access. See "Setting Up Local
User Accounts" on page 3-11 for information on setting up user names and passwords on HP devices.
If you enable empty password logins, users are not prompted for a password when they log in. Any user with an
SSH client can log in without being prompted for a password.
To enable empty password logins:
HP9300(config)# ip ssh permit-empty-passwd yes
Syntax: ip ssh permit-empty-passwd no | yes
Setting the SSH Port Number
By default, SSH traffic occurs on TCP port 22. You can change this port number. For example, the following
command changes the SSH port number to 2200:
HP9300(config)# ip ssh port 2200
Note that if you change the default SSH port number, you must configure SSH clients to connect to the new port.
Also, you should be careful not to assign SSH to a port that is used by another service. If you change the SSH
port number, HP recommends that you change it to a port number greater than 1024.
Syntax: ip ssh port <number>
Setting the SSH Login Timeout Value
When the SSH server attempts to negotiate a session key and encryption method with a connecting client, it waits
a maximum of 120 seconds for a response from the client. If there is no response from the client after 120
seconds, the SSH server disconnects. You can change this timeout value to between 1 – 120 seconds. For
example, to change the timeout value to 60 seconds:
HP9300(config)# ip ssh timeout 60
Syntax: ip ssh timeout <seconds>
Designating an Interface as the Source for All SSH Packets
You can designate a loopback interface, virtual interface, or Ethernet port as the source for all SSH packets from
the device. The software uses the IP address with the numerically lowest value configured on the port or interface
as the source IP address for SSH packets originated by the device.
NOTE: When you specify a single SSH source, you can use only that source address to establish SSH
management sessions with the HP device.
To specify the numerically lowest IP address configured on a loopback interface as the device's source for all SSH
packets, enter commands such as a the following:
HP9300(config)# int loopback 2
HP9300(config-lbif-2)# ip address 10.0.0.2/24
HP9300(config)# ip ssh source-interface loopback 2
The commands in this example configure loopback interface 2, assign IP address 10.0.0.2/24 to the interface, then
designate the interface as the source for all SSH packets from the routing switch.
Syntax: ip ssh source-interface ethernet <portnum> | loopback <num> | ve <num>
The <num> parameter is a loopback interface or virtual interface number. If you specify an Ethernet port, the
<portnum> is the port's number (including the slot number, if you are configuring an HP 9304M or HP 9308M). For
HP9300(config)# interface ethernet 1/4
HP9300(config-if-1/4)# ip address 184.108.40.206/24
HP9300(config)# ip ssh source-interface ethernet 1/4
4 - 6