Setting the ssh port number, Setting the ssh login timeout value – Brocade TurboIron 24X Series Configuration Guide User Manual

Page 161

Advertising
background image

Brocade TurboIron 24X Series Configuration Guide

127

53-1003053-01

Setting optional parameters

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.

TurboIron(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, Brocade 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, enter the
following command.

TurboIron(config)#ip ssh timeout 60

Syntax: ip ssh timeout <seconds>

Designating an interface as the source for all SSH
packets (Layer 3 code only)

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 device.

To specify the numerically lowest IP address configured on a loopback interface as the device
source for all SSH packets, enter commands such as a the following.

TurboIron(config)#int loopback 2

TurboIron(config-lbif-2)#ip address 10.0.0.2/24

TurboIron(config-lbif-2)#exit

TurboIron(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 device.

Syntax: ip ssh source-interface ethernet <port> | loopback <num> | ve <num>

The <num> parameter is a loopback interface or virtual interface number. The <port> parameter
specifies an ethernet port number.

Advertising