From 5c09d6dd02cb192b89a722204a4092b2f89795fd Mon Sep 17 00:00:00 2001 From: Dan Hughes Date: Wed, 12 Feb 2020 06:58:20 +0000 Subject: [PATCH] Use absolute path for identityfile in ssh config (#1718) * Use absolute path for identityfile in ssh config * Update readme with ssh config include --- README.md | 8 ++++++++ server.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c044d3d..263bf76 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,14 @@ where `` 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 /configs/*/ssh_config +``` + +where `` 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. diff --git a/server.yml b/server.yml index fb472f0..99ffa37 100644 --- a/server.yml +++ b/server.yml @@ -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'