SSH disconnected when entering correct password on router using Putty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 08:07 AM
Whenever I am trying to access 1 router through ssh, it asks me for the username and password but putty window gets closed when I entered the correct password. When entering wrong password, it will ask for the password again but will not close the session. I can connect perfectly using telnet.
Also find a post last year related the same issue, but there is no solution on it
Please suggest. Thank
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 09:33 AM
- Check device software version. Make sure it is not too old. If applicable upgrade to a more recent release, check if the problem persists.
M.
-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 09:38 AM
Hi marce1000,
The router is a cisco ASR1002 with Version 03.16.09.S. I have another router in the network with same version and hardware, and they works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 01:31 PM
One way to investigate this would be to run debug for ssh on the router, attempt access using ssh, when it fails access the router using telnet and look in the log file for debug output. (make sure that the logging level for buffered logging is debug rather than some other level)
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 03:16 PM
If the SSH session gets prematurely terminated the reason would show up in the logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 03:30 PM - edited 04-23-2020 03:36 PM
See the logs how the session is closed at the same second. Also below I put the configuration.
006898: Apr 23 22:24:36 UTC: %SSH-5-SSH2_SESSION: SSH2 Session request from xx.xx.xx.xx (tty = 0) using crypto cipher 'aes256-ctr', hmac 'hmac-sha1' Succeeded
006899: Apr 23 22:24:43 UTC: %SSH-5-SSH2_USERAUTH: User 'mia20037' authentication for SSH2 Session from xx.xx.xx.xx (tty = 0) using crypto cipher 'aes256-ctr', hmac 'hmac-sha1' Succeeded
006900: Apr 23 22:24:43 UTC: %SSH-5-SSH2_CLOSE: SSH2 Session from xx.xx.xx.xx (tty = 0) for user 'mia20037' using crypto cipher 'aes256-ctr', hmac 'hmac-sha1' closed
xxxx#show ip ssh
SSH Enabled - version 2.0
Authentication methods:publickey,keyboard-interactive,password
Authentication Publickey Algorithms:ssh-rsa
Hostkey Algorithms:x509v3-ssh-rsa,ssh-rsa
Encryption Algorithms:aes256-ctr
MAC Algorithms:hmac-sha1
Authentication timeout: 120 secs; Authentication retries: 3
Minimum expected Diffie Hellman key size : 2048 bits
IOS Keys in SECSH format(ssh-rsa, base64 encoded): mianapmplsfw01
%SSH: Failed to encode IOS ASN.1 to SECSH format
xxxx#show running-config | i ssh
ip ssh rsa keypair-name mianapmplsfw01
ip ssh logging events
ip ssh version 2
ip ssh dh min size 2048
ip ssh server algorithm mac hmac-sha1
ip ssh server algorithm encryption aes256-ctr
ip ssh server algorithm publickey ssh-rsa
transport input ssh
transport input telnet ssh
transport input telnet ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2020 04:55 PM
Hmmmm ... I wonder if this isn't FN - 70489 (PKI Self-Signed Certificate Expiration in Cisco IOS and Cisco IOS XE Software).
