service ssh port <port>
Specifies the port the system will use for the SSH service.
The SSH service runs on port 22.
- port
- The port the system uses for the SSH service. The numbers range from 1 through 65534.
Configuration mode
service {
ssh {
port port
}
}
Use this command to specify the port the system will use for the SSH service.
Use the set form of this command to specify the port the system will use for the SSH service.
Use the delete form of this command to restore the default port configuration.
Use the show form of this command to view the port configuration.