Enabling or Disabling the SSH Client

About this task

You can disable the SSH client functionality on the switch. By default, the SSH client functionality is enabled.

Note

Note

In order to enable the SSH client functionality, SSH must be enabled globally.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Disable the SSH client functionality:

    no ssh client <enable>

  3. Use one of the following commands to enable the SSH client functionality:
    • ssh client <enable>

    • default ssh client <enable>

    Note

    Note

    You must enable SSH globally before the SSH client functionality can be re-enabled.

Example

Display the general SSH settings::

Switch:1(config)# show ssh global

Total Active Sessions  :  0
        version                : v2only
        port                   : 22
        max-sessions           : 4
        timeout                : 60
        action rsa-host key    : rsa-hostkeysize 2048
        action dsa-host key    : dsa-hostkeysize 1024
        rsa-auth               : true
        dsa-auth               : true
        pass-auth              : true
        keyboard-interactive-auth : false
        sftp enable            : true
        enable                 : true
        client enable          : true    

Disable SSH client functionality:

Switch:1(config)# no ssh client

Switch:1(config)# show ssh global

Total Active Sessions  :  0
        version                : v2only
        port                   : 22
        max-sessions           : 4
        timeout                : 60
        action rsa-host key    : rsa-hostkeysize 2048
        action dsa-host key    : dsa-hostkeysize 1024
        rsa-auth               : true
        dsa-auth               : true
        pass-auth              : true
        keyboard-interactive-auth : false
        sftp enable            : true
        enable                 : true
        client enable          : false