I set the lines
PasswordAuthentication yes and
PubkeyAuthentication yes in
/etc/ssh/sshd_config. I also disabled root login for security purposes. I can now SSH with a user's password without specifying my private key. However I am now unable to deploy over ssh to my server from a script because I would need to specify the password. Therefore I would like the option to ssh into my server without a password by just specifying the private key. However I am always being asked for the password, even if I pass the private key to the
-i option. How can I set this up?
Please note that this is not a passphrase associated with the private key, but rather the password associated with the user. It's the password created with the