From aa0aadd66e36565d21464c44363f82be0b4b93d6 Mon Sep 17 00:00:00 2001 From: Andy Boutte Date: Mon, 17 Apr 2017 19:01:42 -0700 Subject: [PATCH] Removing update to ~/.ssh/config #400 (#435) --- .gitignore | 1 + README.md | 13 +++++++++++-- playbooks/local_ssh.yml | 11 ----------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 7235538..b68ae83 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ configs/* inventory_users *.kate-swp env +.DS_Store \ No newline at end of file diff --git a/README.md b/README.md index 0427e8c..09e2e34 100644 --- a/README.md +++ b/README.md @@ -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. ## 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 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 Algo's own scripts can easily add and remove users from the VPN server. diff --git a/playbooks/local_ssh.yml b/playbooks/local_ssh.yml index fc75430..05e53d9 100644 --- a/playbooks/local_ssh.yml +++ b/playbooks/local_ssh.yml @@ -12,14 +12,3 @@ src: "{{ SSH_keys.private }}" dest: ~/.ssh/algo.pem 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