Use absolute path for identityfile in ssh config (#1718)

* Use absolute path for identityfile in ssh config

* Update readme with ssh config include
This commit is contained in:
Dan Hughes 2020-02-12 06:58:20 +00:00 committed by GitHub
parent dcfed41ae8
commit 5c09d6dd02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -165,6 +165,14 @@ where `<ip>` is the IP address of your Algo server. If you find yourself regular
`ssh-add ~/.ssh/algo > /dev/null 2>&1`
Alternatively, you can choose to include the generated configuration for any Algo servers created into your SSH config. Edit the file `~/.ssh/config` to include this directive at the top:
```
Include <algodirectory>/configs/*/ssh_config
```
where `<algodirectory>` is the directory where you cloned Algo.
## Adding or Removing Users
_If you chose to save the CA key during the deploy process,_ then Algo's own scripts can easily add and remove users from the VPN server.

View file

@ -32,7 +32,7 @@
HostName {{ IP_subject_alt_name }}
User {{ ansible_ssh_user }}
Port {{ ansible_ssh_port }}
IdentityFile {{ SSH_keys.private }}
IdentityFile {{ SSH_keys.private | realpath }}
KeepAlive yes
ServerAliveInterval 30
when: inventory_hostname != 'localhost'