I'd like to use a key-based ssh login with a passphrase being prompted every time I log in. I'm asking in regards to ssh client on the Linux machine. How can I achieve it?
I know that I can ssh-add my private key to the authentication agent. And it'll ask for the passphrase for the given private key only once during this process. Afterwards I'll be able to log in to the remote machine without ever being asked for the passphrase. But that's not what I want.
When I'm trying to log in without adding my key to authentication agent with ssh-add I keep getting an error: "Agent admitted failure to sign using the key."
As a couple examples of what I want: by default on my Windows machine when I use Putty or WinSCP to connect to remote host, both programs ask me for the passphrase for the given key every time I log in.
Thanks
SSH_AUTH_SOCK=0
environment variable. That disables using ssh-agent and I'm being prompted for the key passphrase every time I log in.ssh user@host
) and you will be prompted for your passphrase.