Cannot connect, status is TCP_CONNECTION_DROPPED. Connection unexpectedly closed by SSH server:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2018 03:49 AM
Hi All,
When we are trying to run discovery , we are getting the below issue on classify.
Active couldn't classify.
Cannot connect, status is TCP_CONNECTION_DROPPED. Connection unexpectedly closed by SSH server:
Regards,
Pavan
- Labels:
-
Discovery
-
Service Mapping
- 5,727 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 10:54 AM
I have the same issue, did you resolved it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 11:11 AM
@Vini- Sort of. Check out the previous replies for a bunch of possible causes. For our particular case, they wrote https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1117378 which is supposed to be fixed in Vancouver (right now at least). For now I'm manually creating credential affinities as needed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2023 11:44 AM
Hi @geoffhotchkiss , @tim_broberg ,
Hi @Meenakshi Rajes , @Manuel Stimac ,
We also have the same issue and we got resolved.
Discovery Error#
Cannot connect, status is TCP_CONNECTION_DROPPED. Connection unexpectedly closed by SSH server
Error Captured on the Server when trigger Discovery#
pam_unix(sshd:account): account <Account Name> has expired (account expired)
Apr 18 2023 10:12:04 <<Server name>> sshd[12575]:fatal: Access denied for user <<cnf_mgmt>> by PAM account configuration [preauth]
Resolution:
Executed following Command on the Target server#
chage -m 0 -M 99999 -I -1 -E -1 <<Account Name>
Note# above is to make sure the discovery account never expire again. then we are able to discover the server
Hope this Help, if so please mark it to Helpl & Solved
Regards,
Vinil