-
-
Save jinoj/b94bddb0c350befd76b79a329b5d9bdb to your computer and use it in GitHub Desktop.
Revisions
-
nazarewk revised this gist
Feb 3, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ ControlMaster auto ControlPath ~/.ssh/tmp/control_%h_%p_%r ControlPersist 1m Host jump HostName <jump_ip> -
nazarewk revised this gist
Sep 16, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ ControlMaster auto ControlPath ~/.ssh/tmp/control_%h_%p_%r Host jump HostName <jump_ip> -
nazarewk revised this gist
Sep 16, 2016 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,13 @@ Host jump HostName <jump_ip> User nazarewk ForwardAgent yes Host secured-* User nazarewk ## ProxyJump works on OpenSSH 7.3+ (newest version as of 16.09.2016) # ProxyJump jump ProxyCommand ssh jump -W %h:%p ForwardAgent yes -
nazarewk revised this gist
Sep 16, 2016 . 2 changed files with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ [defaults] sudo_flags = SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -H -S -n [ssh_connection] ssh_args=-o ForwardAgent=yes This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ - name: Ensuring we can ForwardAgent lineinfile: dest: "~/.profile" line: '[ -n "$SSH_AUTH_SOCK" ] && setfacl -m u:{{ project_user }}:rw "$SSH_AUTH_SOCK" && setfacl -m u:{{ project_user }}:x "$(dirname $SSH_AUTH_SOCK)"' insertafter: EOF - name: Ensure we have ForwardAgent -
nazarewk created this gist
Sep 15, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ Host jump HostName <jump_ip> User nazarewk ForwardAgent yes Host secured-* User nazarewk ProxyJump jump ForwardAgent yes This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ - name: Ensuring we can ForwardAgent lineinfile: dest: "~/.profile" line: '[ -n "$SSH_AUTH_SOCK" ] && setfacl -m u:{{ project_user }}:rw "$SSH_AUTH_SOCK" && setfacl -m u:{{ project_user }}:x "$(dirname $SSH_AUTH_SOCK)" && alias sudo=''/usr/bin/sudo SSH_AUTH_SOCK="$SSH_AUTH_SOCK"''' insertafter: EOF - name: Ensure we have ForwardAgent command: ssh-add -l become: true become_user: "{{ project_user }}"