Amazon EC2实例 [英] Amazon EC2 instance

查看:200
本文介绍了Amazon EC2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装一个Amazon EC2 intance使用命令行工具。我已创建一个密钥对吧等,这是启动和运行。我尝试使用以下(我运行bash雪豹)SSH到它:

I have setup an amazon EC2 intance using the command line tools. I have create a key pair for it etc. and it is up and running. I try to SSH into it using the following (I am running bash in Snow Leopard):

$ ssh -i ec2-keypair root@ec2-xxx-xxx-xx-xx.compute-1.amazonaws.com

雪豹弹出一个对话框说EC2-密钥对为SSH密钥输入你的密码。是否有人可以告诉我,我应该怎么办?如果我不提供密码,它只是要求我一个在bash终端。

Snow Leopard pops up a box saying "Enter you password for the SSH key "ec2-keypair" ". Can someone please tell me what I should do? If I don't provide a password its just asks me for one in the bash terminal.

感谢您的答复。我创建了一个密钥对Amazon EC2上使用:

Thanks for the response. I create a key pair for Amazon EC2 using:

ec2-add-keypair ec2-keypair

我已创建一个密码保护的窗框关键,现在已经在我的.ssh目录的两个文件:

I have create a password protected sash key and now have two files in my .ssh directory:

id_rsa
id_rsa.pub

我是否需要转移其中的一个我的EC2实例?哪一个?什么是这样做的最佳途径,在那里我该怎么说?

Do I need to transfer one of these to my EC2 instance? Which one? What is the best way of doing this and where shall I put?

最大

pciated因为我花了一些试图排序了这一点。任何帮助非常AP $ P $

Any help greatly appreciated as I have spent some while trying to sort this out.

最大。

推荐答案

在创建密钥对的最佳管道输出直接到一个文件,以便有没有格式问题,使用:

When creating the key pair its best to pipe the output straight into a file so that there are no formatting issues, using:

EC2-附加密钥对EC2-密钥对|中美战略经济对话1D> EC2-密钥对

ec2-add-keypair ec2-keypair | sed '1d' > ec2-keypair

最大

这篇关于Amazon EC2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆