Преглед на файлове

Merge pull request #588 from tomasbedrich/sudo-ssh-agent-forwarding

Allow SSH agent forwarding when using sudo.  This allows one to use SSH agent forwarding from a local machine when logged in as a root on the Sovereign server.  This is useful, for example, for cloning a Github repository to /var/www (owned by root) without the need to store private SSH keys on the Sovereign server.
Mike Ashley преди 7 години
родител
ревизия
c8a1f00be1
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3
    0
      roles/common/templates/sudoers.j2

+ 3
- 0
roles/common/templates/sudoers.j2 Целия файл

@@ -1 +1,4 @@
1 1
 {{ main_user_name }} ALL=(ALL) NOPASSWD: ALL
2
+
3
+# Allow SSH agent forwarding when using sudo
4
+Defaults    env_keep+=SSH_AUTH_SOCK

Loading…
Отказ
Запис