Unable to Log On Using SSH

If you cannot log on using Secure Shell (SSH), perform the following steps.

Procedure

  1. Verify that the network, the switch, and the TACACS+ server is reachable.
  2. Verify whether you configured the SSH client correctly.
  3. Verify whether you enabled and configured the SSH function correctly on the switch:

    show ssh global

Example

Verify whether you enabled and configured SSH function correctly on the switch:

Switch:1(config)#show ssh global 
        Total Active Sessions             : 1
        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
        x509-auth                         : true
        x509-auth Trustpoint CA Name      :
        x509-auth Identity Subject Name   : not configured
        x509-auth overwrite               : false
        x509-auth strip-domain            : false
        x509-auth use-domain              : -
        x509-auth revocation-check-method : OCSP
        sftp enable                       : true

        client enable                     : true

        enable                            : true
        authentication-type               : aead-aes-128-gcm-ssh aead-aes-256-gcm-ssh hmac-sha1 hmac-sha2-256
        encryption-type                   : 3des-cbc aead-aes-128-gcm-ssh aead-aes-256-gcm-ssh aes128-cbc aes128-ctr
                                             aes192-cbc aes192-ctr aes256-cbc aes256-ctr blowfish-cbc rijndael128-cbc
                                             rijndael192-cbc
        key-exchange-method               : diffie-hellman-group-exchange-sha256 diffie-hellman-group14-sha1
                                             diffie-hellman-group14-sha256 diffie-hellman-group16-sha512
                                             diffie-hellman-group18-sha512