login about faq

I am using SSH key pairs to connect a server (where public key is located) with many other servers (all of them use the same private key)

The key pairs work for most servers except certain IBM AIX servers where I keep getting this error

Line 1: '-----BEGIN RSA PRIVATE KEY-----': parsing line failed.
warning: File /wload/zuht/home/user/.ssh/PrivKey, 
Line 2: 'MIIEoAIBAAKCAQEAwgzwV1FjGao9BcYOe1hEb5G3uNyofm0rkFPB21fvVVJyOCEr': parsing line failed.

I thought this might be something to do with the ssh key format so I tried all known formats such as SSH2, OpenSSH etc.however get the same error regardless. And then I receive a prompt for the password.

Has anyone come across this before? any ideas on what might be causing this?

P.S. Before you answer, please consider that I don't have access to login as root anywhere.

asked Jan 30 '14 at 19:20

cherry's gravatar image


edited Jan 30 '14 at 20:28

Roman's gravatar image

Roman ♦♦

Hi. Is this an error that your ssh client is giving or is it from the ssh server ? Can you include the contents of the authorized_keys file on the server? Also you might try using the verbose flag in the client (ssh -vvv) to get more verbose output and paste that here.

(Jan 30 '14 at 20:26) Roman ♦♦ Roman's gravatar image

From this it sounds like the public key on the SSH server is not properly configured. The public key in the SSH server should typically reside under the target account's $HOME/.ssh/authorized_keys file and consist of one single line in the following format:

ssh-rsa AAAAB2...19Q== user@example.net

Try displaying the contents of the authorized key file in the server (including non printable characters) to see if there's anything odd:

cat -vte /home/myuser/.ssh/authorized_keys

answered Jan 30 '14 at 20:40

Roman's gravatar image

Roman ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 30 '14 at 19:20

Seen: 9,723 times

Last updated: Jan 30 '14 at 20:40

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.