ip ssh port

This topic explains the commands that set the TCP port for SSH requests or reset it to the default.

Syntax

CODE
ip ssh port <1025-65535>
no ip ssh port

Parameter

<1025-65535>: Set the secure shell (SSH) TCP service port, which can be a number in the range from 1025 to 65535.

Default

22.

Mode

Global Configuration

Usage

Use the ip ssh port command to set the TCP port number on which the switch can detect SSH requests.

Use the no ip ssh port command to reset the port number to the default.

Example

This example shows how to set the SSH TCP port number to port 1025:

CODE
Switch(config)# ip ssh 1025