Previous Topic

Next Topic

Book Contents

Secure Shell Commands

This section describes the commands you use to configure Secure Shell (SSH) access to the switch. Use SSH to access the switch from a remote management host.

NOTE: The system allows a maximum of 5 SSH sessions.

ip ssh

Use this command to enable SSH access to the system. (This command is the short form of the ip ssh server enable command.)

ip ssh protocol

This command is used to set or remove protocol levels (or versions) for SSH. Either SSH1 (1), SSH2 (2), or both SSH 1 and SSH 2 (1 and 2) can be set.

ip ssh server enable

This command enables the IP secure shell server. No new SSH connections are allowed, but the existing SSH connections continue to work until timed-out or logged-out.

no ip ssh server enable

This command disables the IP secure shell server.

sshcon maxsessions

This command specifies the maximum number of SSH connection sessions that can be established. A value of 0 indicates that no ssh connection can be established. The range is 0 to 5.

no sshcon maxsessions

This command sets the maximum number of allowed SSH connection sessions to the default value.

sshcon timeout

This command sets the SSH connection session timeout value, in minutes. A session is active as long as the session has been idle for the value set. The time is a decimal value from 1 to 160. Changing the timeout value for active sessions does not become effective until the session is re accessed. Also, any keystroke activates the new timeout duration.

no sshcon timeout

This command sets the SSH connection session timeout value, in minutes, to the default. Changing the timeout value for active sessions does not become effective until the session is re accessed. Also, any keystroke activates the new timeout duration.

show ip ssh

This command displays the ssh settings.

The display parameters for above command are:

See also

Management Commands

Network Interface Commands

Console Port Access Commands

Telnet Commands

FTP Commands

Management Security Commands

Hypertext Transfer Protocol Commands

Access Commands

User Account Commands

SNMP Commands

RADIUS Commands

TACACS Commands

Configuration Scripting Commands

Pre-login Banner and System Prompt Commands