diff --git a/commands/aws.ipynb b/commands/aws.ipynb new file mode 100644 index 0000000..dd9e818 --- /dev/null +++ b/commands/aws.ipynb @@ -0,0 +1,63 @@ +{ + "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": {} + } + ] +} \ No newline at end of file