Hi all,
I'd like to check if connecting to a remote host ask for a password or not.
I thought that using this command:
- ssh -l user RemoteHost -o PasswordAuthentication=no pwd
the output would be the current directory or an error code.
If I try to connect to a RemoteHost with which there have been a key exchange everything works fine, instead, if I connect with a RemoteHost without key exchange it just ask for password.
Is there another option to achieve what I'm looking for?
Thanks,
Evan