IBM Support

ssh commands display error messages but still work

Troubleshooting


Problem

When ssh commands (ssh, scp and sftp) are run, messages like these are printed but the command is still successful.

buffer_get_ret: trying to get more bytes 257 than in buffer 64
buffer_get_string_ret: buffer_get failed
buffer_get_bignum2_ret: invalid bignum
key_from_blob: can't read rsa key
key_read: key_from_blob XXXXXXXXXXXXXXXX failed

or

key_load_public: invalid format

or

key_load_private: invalid format

Cause

One or more of the user's public or private key files are corrupt.  This is usually caused by extraneous characters, line breaks in the middle of a key, control characters, or some other form of file corruption.

Resolving The Problem

If the corruption (such as a line break in the middle of the key) can be identified, fix the key.  Otherwise, a new key pair will have to be generated and the user's authorized_keys file on the server updated with the new public key.

Document Location

Worldwide


[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"Component":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

More support for:
AIX

Software version:
All Versions

Operating system(s):
AIX

Document number:
878789

Modified date:
27 March 2019

UID

ibm10878789

Manage My Notification Subscriptions