Users are encountering a found multiple matches error when attempting to connect to a server using sft hostname. The complete error is referenced below:
found multiple matches
user@macbook ~ % sft ssh ip-x-x-x-x
error: found multiple matches:
4d39a05f-f653-4edf-b651-708687dc5105 (ip-x-x-x-x, Registered September 6, 2023 03:36 UTC)
b0dd1ca9-56c3-4c37-9985-14da711780a4 (ip-x-x-x-x, Registered August 9, 2023 16:17 UTC)
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
ASA console (or sft list-servers output) shows two server entries for the hostname with the same IP.
kushal.choubay@N0FQY7K70Y ~ % sft list-servers
HOSTNAME OS_TYPE PROJECT_NAME ID ACCESS_ADDRESS
ip-x-x-x-x linux prod 4d39a05f-f653-4edf-b651-708687dc5105 x.x.x.x
ip-x-x-x-x linux prod b0dd1ca9-56c3-4c37-9985-14da711780a4 x.x.x.x
No issue is found when sft ssh is done using the server ID.
- Okta Advanced Server Access (ASA)
- Okta Classic Engine
Follow the steps below to resolve the issue:
- Log in to ASA UI.
- Go to the project server that it is enrolled into and search with hostname.
- Click on the project to get ID details.
- Delete the one that was enrolled previously.
- For example, from the error message above, server ID
b0dd1ca9-56c3-4c37-9985-14da711780a4is the old enrollment which should be deleted.
- For example, from the error message above, server ID
If none of the admins re-enrolled the server and re-enrollment appears to have happened automatically, reach out to Okta Support for root cause analysis.
