mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
parent
f13cc71851
commit
aa0aadd66e
3 changed files with 12 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ configs/*
|
|||
inventory_users
|
||||
*.kate-swp
|
||||
env
|
||||
.DS_Store
|
13
README.md
13
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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue