---
title: "ssh 访问不需要密码"
author: "RobinWu"
date: "2011-10-19T11:04:09Z"
tags: []
categories: ["操作系统"]
slug: "ssh"
draft: false
lastmod: "2011-10-19T11:06:09Z"
id: 1201219
url: "https://robinwu.iteye.com/blog/1201219"
---

```java

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

scp <user>@*.*.com:~/.ssh/id_rsa <user>.pem
ssh -i <user>.pem <user>@*.*.com

```