diff options
Diffstat (limited to 'roles/tools/files/ssh')
-rw-r--r-- | roles/tools/files/ssh/known_hosts | 2 | ||||
-rw-r--r-- | roles/tools/files/ssh/rc | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/tools/files/ssh/known_hosts b/roles/tools/files/ssh/known_hosts new file mode 100644 index 0000000..92545ea --- /dev/null +++ b/roles/tools/files/ssh/known_hosts | |||
@@ -0,0 +1,2 @@ | |||
1 | immae.eu,git.immae.eu ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM/7mizTNieTOU4i263zZeKBf/3U9O1rP7YEvR8qZWSFZXmEAlXsH3C+v2c1AS2udQpbgioKuqoRj2ZQImyScnU= | ||
2 | github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== | ||
diff --git a/roles/tools/files/ssh/rc b/roles/tools/files/ssh/rc new file mode 100644 index 0000000..35b7d34 --- /dev/null +++ b/roles/tools/files/ssh/rc | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | if [ -n "$DISPLAY" ]; then | ||
4 | export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" | ||
5 | read protocol cookie | ||
6 | xauth remove $DISPLAY | ||
7 | xauth add $DISPLAY "$protocol" "$cookie" | ||
8 | fi | ||