Skip to content

Instantly share code, notes, and snippets.

@riywo
Created February 24, 2011 16:02
Show Gist options
  • Save riywo/842342 to your computer and use it in GitHub Desktop.
Save riywo/842342 to your computer and use it in GitHub Desktop.
とりあえずEC2にログインするまで
[~]$ mkdir .ssh
[~]$ chmod 600 .ssh
[~]$ mv ~/Downloads/riywo-test.pem ~/.ssh
[~]$ chmod 600 ~/.ssh/riywo-test.pem
[~]$ vim ~/.ssh/config
Host test-cf
HostName ec2-XX-XX-XX-XX.compute-1.amazonaws.com
User ec2-user
Port 22
IdentityFile ~/.ssh/riywo-test.pem
[~]$ ssh test-cf
The authenticity of host 'ec2-XX-XX-XX-XX.compute-1.amazonaws.com (XX.XX.XX.XX)' can't be established.
RSA key fingerprint is ------------------------------------.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-XX-XX-XX-XX.compute-1.amazonaws.com,XX.XX.XX.XX' (RSA) to the list of known hosts.
Last login: Thu Feb 24 15:57:22 2011 from ----------------
__| __|_ ) Amazon Linux AMI
_| ( / Beta
___|\___|___|
See /usr/share/doc/amzn-ami/image-release-notes for latest release notes. :-)
[ec2-user@domU-11-11-11-11-11 ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment