Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1654736
  • 博文数量: 135
  • 博客积分: 2820
  • 博客等级: 少校
  • 技术积分: 2544
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-16 13:33
文章分类

全部博文(135)

文章存档

2015年(1)

2014年(8)

2013年(16)

2012年(43)

2011年(56)

2010年(11)

分类: LINUX

2011-06-29 17:47:20

If you have some problems likes Permission denied (publickey,gssapi-with-mic), or the error 'Not a RSA1 key file' when using ssh remote login, try to fix issues as below:

  1. get more information with ssh -vvv username@yourhost.com, it's more important.
  2. check the permissions of your private and public keys, id_rsa should 600, id_rsa.pub should 644
  3. check if your id_rsa matched with id_rsa.pub.

For the 3rd, it looks very strange, I am not sure it's a bug of openssh or something. The id_rsa.pub is the public key for my windows host (I have ssh server on windows), the id_rsa is the private key for remote linux host, I put them to the .ssh folder.

But when I ssh login the linux host, I got "Permission denied (publickey,gssapi-with-mic)". if I remove id_rsa.pub from .ssh folder, it work fine.

阅读(2856) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~