data-science-ipython-notebooks/commands/aws.ipynb

63 lines
1.2 KiB
Plaintext

{
"metadata": {
"name": "",
"signature": "sha256:b65124c49718f35b0c88555bf8a8a9c76c41dc50c2b980ec01ebe55e39688d3e"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# AWS Command Lines"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Connect to EC2"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Connect to an Ubuntu EC2 instance through SSH with the given key:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"ssh -i key.pem ubuntu@ipaddress"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Connect to an Amazon Linux EC2 instance through SSH with the given key:"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"ssh -i key.pem ec2-user@ipaddress"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}