I setup the key-pair authentication. I generated the private key without the passphrase. One client establishes the connection to the server without any input prompt. But other client always asks for the passphrase for the private key. Trying the verbose mode I get:
. . . . . . . . .
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: .ssh/priv.key
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '.ssh/priv.key':
debug1: Next authentication method: password
. . . . . . . . .
But I can successfully read this key file:
$ ls -la .ssh/priv.key
-rw------- 1 xxxxx xxxxx 1834 May 18 14:49 .ssh/priv.key
$
$ cat .ssh/priv.key
-----BEGIN OPENSSH PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxx.......
-----END OPENSSH PRIVATE KEY-----
$