My Oracle Support Banner

Unable to Use Putty Private Key While Using SSH from Linux Box to Cloud VM (Doc ID 2233804.1)

Last updated on MARCH 22, 2018

Applies to:

Oracle Database as a Service - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms

Customer was unable to use private key while using ssh from Linux box to Cloud VM.
While doing ssh, they were getting below error messages:

$ ssh -i ~/.ssh/rsa-key-20170207_pwd.ppk -vvv opc@<target IP>

OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/oracle/.ssh/rsa-key-20170207_pwd.ppk.
debug2: key_type_from_name: unknown key type 'PuTTY-User-Key-File-2:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Encryption:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Comment:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Public-Lines:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
...........
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/oracle/.ssh/rsa-key-20170207_pwd.ppk
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/home/oracle/.ssh/rsa-key-20170207_pwd.ppk':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/oracle/.ssh/rsa-key-20170207_pwd.ppk':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: bad passphrase given, try again...
Enter passphrase for key '/home/oracle/.ssh/rsa-key-20170207_pwd.ppk':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug2: bad passphrase given, try again...
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

$ chmod 600 rsa-key-20170207_pwd.ppk

$ ssh -i rsa-key-20170207_pwd.ppk opc@<target IP>

Enter passphrase for key 'rsa-key-20170207_pwd.ppk':
Enter passphrase for key 'rsa-key-20170207_pwd.ppk':
Enter passphrase for key 'rsa-key-20170207_pwd.ppk':
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Changes

They copied the private key (created in .ppk format, which is compatible to PuTTY's proprietary format) to Linux box

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.