CAPP Development Module
Workflow Speedups
Review of Basic Commands
Common Programs/Functions
Bash Scripting & Common Operators
Paths
Remote Shells & APIs
Virtual Python Environments
Tonight’s demo repo:
https://github.com/justincohler/capp_dev_module
Speed up your workflow
Practice incorporating during the lab!
```
```
Getting around via CLI
```
Common Functions
```
Bash Scripting
```
Paths
```
SSH Configuration
What is SSH and where is it useful?
A trust-based remote access system
(used in AWS and clouds everywhere)
What do you need to connect via SSH?
Why public AND private keys?
Diffy-Hellman
Demo Time:
Create a new key if you don’t already have one with:
A very basic ssh call:
$> ssh -i <private-key-path> <user>@<host>
On our demo ec2 instance (AWS):
Why will this not work when you attempt the same command with your private key?
The host only allows those whose public key is on the list in ~/.ssh/authorized_keys
For frequent ssh remoting to different instances, the ~/.ssh/config is a useful shorthand
Host capp-demo
User ec2-user
Hostname ec2-54-82-235-131.compute-1.amazonaws.com
IdentityFile ~/.ssh/aws-ec2.pem
Now, we can just remote in by our nickname:
ssh capp-demo
wowowowowow