Issue:
In recent upgrade of ubuntu 22.04 we are not able to login server with SSH password. but when we try to login with key then it allows to login.
Reason:
The issue is that we were using keys generated by the RSA algorithm. This is no longer supported. The resolution is to use new keys generated by a more secure algorithm, such as ed25519 or disable the one configuration in ssh configuration file.
Resolution:
I have done by commenting one line in ssh configuration.
1. open ssh configuration file,
/etc/ssh/sshd_config
2. comment below line,
#KbdInteractiveAuthentication no
3. Restart ssh service,
service ssh restart
And now its working.