---
title: "解决 id_rsa 权限不够"
author: "RobinWu"
date: "2011-10-26T13:12:40Z"
tags: []
categories: ["操作系统"]
slug: "id-rsa"
draft: false
lastmod: "2011-10-26T13:13:42Z"
id: 1216647
url: "https://robinwu.iteye.com/blog/1216647"
---

> [url]http://hi.baidu.com/goglad/blog/item/a8bc3d2a8f93c8345243c1ac.html[/url]


问题

```java

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/robin/.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/robin/.ssh/id_rsa

```


解决方案

```java

chmod 755 ~/.ssh/
chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub 
chmod 644 ~/.ssh/known_hosts

```