Removing update to ~/.ssh/config #400 (#435)

This commit is contained in:
Andy Boutte 2017-04-17 19:01:42 -07:00 committed by Dan Guido
parent f13cc71851
commit aa0aadd66e
3 changed files with 12 additions and 13 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ configs/*
inventory_users inventory_users
*.kate-swp *.kate-swp
env env
.DS_Store

View file

@ -84,8 +84,6 @@ You can now setup clients to connect it, e.g. your iPhone or laptop. Proceed to
"\"#----------------------------------------------------------------------#\"", "\"#----------------------------------------------------------------------#\"",
``` ```
Note: If you want to run Algo again at any point in the future, you must first "reactivate" the dependencies for it. To reactivate them, open your terminal, use `cd` to navigate to the directory with Algo, then run `source env/bin/activate`.
Advanced users who want to install Algo on top of a server they already own or want to script the deployment of Algo onto a network of servers, please see the [Advanced Usage](/docs/advanced-usage.md) documentation. Advanced users who want to install Algo on top of a server they already own or want to script the deployment of Algo onto a network of servers, please see the [Advanced Usage](/docs/advanced-usage.md) documentation.
## Configure the VPN Clients ## Configure the VPN Clients
@ -177,6 +175,17 @@ Use the example command below to start an SSH tunnel by replacing `user` and `ip
`ssh -D 127.0.0.1:1080 -f -q -C -N user@ip -i configs/ip_user.ssh.pem` `ssh -D 127.0.0.1:1080 -f -q -C -N user@ip -i configs/ip_user.ssh.pem`
## SSH into Algo Server
To SSH into the Algo server for administrative purposes you can use the example command below by replacing `ip` with your own:
`ssh ubuntu@ip -i ~/.ssh/algo.pem`
If you find yourself regularly logging into Algo then it will be useful to load your Algo ssh key automatically. Add the following snippet to the bottom of `~/.bash_profile` to add it to your shell environment permanently.
`ssh-add ~/.ssh/algo > /dev/null 2>&1`
## Adding or Removing Users ## Adding or Removing Users
Algo's own scripts can easily add and remove users from the VPN server. Algo's own scripts can easily add and remove users from the VPN server.

View file

@ -12,14 +12,3 @@
src: "{{ SSH_keys.private }}" src: "{{ SSH_keys.private }}"
dest: ~/.ssh/algo.pem dest: ~/.ssh/algo.pem
mode: '0600' mode: '0600'
- name: Configure the local ssh config
local_action:
module: blockinfile
dest: "~/.ssh/config"
marker: "# {mark} ALGO MANAGED BLOCK {{ cloud_instance_ip|default(server_ip) }}"
insertbefore: BOF
create: yes
block: |
Host {{ cloud_instance_ip|default(server_ip) }}
IdentityFile ~/.ssh/algo.pem