Sometime you may see issues such as the following:
Issue 1: Public Key issue
============
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
============
Solution: Look inside the .ssh directory in your home directory. Do you see .ssh/id_rsa.pub? If not, try to get it from your backup or generate a fresh key pair (and pass the public key to your server admin).
Issue 2: ssh config file permission issue
==============
Bad owner or permissions on /home/anil/.ssh/config
fatal: The remote end hung up unexpectedly
==============
Solution: chmod 600 ~/.ssh/config
Issue 3: Unprotected Private key file
===============
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0775 for '/home/anil/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /home/anil/.ssh/id_rsa
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
==================
Solution: chmod 600 ~/.ssh/*
Monday, February 07, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment