I would test via a python script whether a passwordless ssh login has been setup or not.
If i run the normal ssh command then it will wait to accept the password for some amount of time.
Is there a way where the ssh command should return an error as soon as ssh asks for a password.
Is it possible to achieve this?
paramiko will raise an AuthenticationException if you don't pass a password to the SSHClient's .connect() method and a working key cannot be found.
Check if passwordless access has been setup