From 5d2adad23542f6488360d116ed29adccec69bf6a Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 9 Sep 2019 17:17:59 +0200 Subject: [PATCH] Update SSH configuration to use XDG directories Signed-off-by: Severin Kaderli --- .gitignore | 2 ++ install | 1 + system/.config/ssh/config | 2 ++ system/.local/bin/ssh | 14 ++++++++++++++ 4 files changed, 19 insertions(+) create mode 100644 system/.config/ssh/config create mode 100755 system/.local/bin/ssh diff --git a/.gitignore b/.gitignore index b85a1ea..6b29e06 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,5 @@ system/.config/phpstorm/config/options/web-types-registry.xml system/.config/phpstorm/config/options/vcs.xml system/.config/phpstorm/config/options/notifications.xml system/.config/mpd/database + +*id_rsa* \ No newline at end of file diff --git a/install b/install index 178e3fc..b42f93b 100755 --- a/install +++ b/install @@ -69,6 +69,7 @@ LINKED_FILES_HOME=( ".config/redshift" ".config/sqlite3" ".config/streamlink" + ".config/ssh" ".config/sxhkd" ".config/topgrade.toml" ".config/Trolltech.conf" diff --git a/system/.config/ssh/config b/system/.config/ssh/config new file mode 100644 index 0000000..48b3ec4 --- /dev/null +++ b/system/.config/ssh/config @@ -0,0 +1,2 @@ +Host * + IdentityFile /home/severin/.config/ssh/id_rsa \ No newline at end of file diff --git a/system/.local/bin/ssh b/system/.local/bin/ssh new file mode 100755 index 0000000..edbb77a --- /dev/null +++ b/system/.local/bin/ssh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# +# SCRIPT NAME: +# ssh +# +# AUTHOR: +# Severin Kaderli +# +# DESCRIPTION: +# Wrapper script for ssh to use XDG directories +# +# USAGE: +# ./svn +"/usr/bin/ssh" -F "${XDG_CONFIG_HOME}/ssh/config" "${@}" \ No newline at end of file