OCI : SSH Login Failed Due To Protocol Mismatch
in Linux
Applies To:
Oracle Cloud Infrastructure
Oracle Linux - Version 6
Symptoms
User is not able to login using private key with the following scenarios:
- Connection using “ssh” will fail with:
Protocol major versions differ: 2 vs. 1
- Using putty, depending on the version it can fail with:
SSH protocol version 2 required by our configuration but remote only provides (old, insecure) SSH-1
- Or, in case and old putty version is used:
No supported authentication methods available
Cause
The server is configured to use on SSH protocol version 1, and the SSH private key was created for version 2
Solution
SSH protocol 1 is not required, change the configuration to use the default, protocol version 2.
Tagged:
0