From c7e8d2cc0ec6f4fc325156a91302ec1d67fdcb0f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 16 Oct 2018 01:40:31 -0400 Subject: [PATCH] Add Split SSH configurations --- .ssh/config | 3 +++ .ssh/config.d/config.d | 1 + .ssh/config.d/home | 23 +++++++++++++++++++++++ install.sh | 10 ++++++---- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .ssh/config create mode 120000 .ssh/config.d/config.d create mode 100644 .ssh/config.d/home diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..f6478a9 --- /dev/null +++ b/.ssh/config @@ -0,0 +1,3 @@ +### Master SSH Config + +Include config.d/* diff --git a/.ssh/config.d/config.d b/.ssh/config.d/config.d new file mode 120000 index 0000000..db56510 --- /dev/null +++ b/.ssh/config.d/config.d @@ -0,0 +1 @@ +/home/ahosking/dotfiles/.ssh/config.d \ No newline at end of file diff --git a/.ssh/config.d/home b/.ssh/config.d/home new file mode 100644 index 0000000..e457181 --- /dev/null +++ b/.ssh/config.d/home @@ -0,0 +1,23 @@ +#### Home SSH Config +host home + hostname home.ahoskingit.com + user ahosking + +host home-decrypt + hostname 192.168.1.187 + user root + port 4422 + +host git.ahoskingit.com + hostname git.ahoskingit.com + port 9022 + +host home-desktop + hostname 192.168.1.187 + user ahosking + ProxyCommand ssh -fNg -R 8700:localhost:22 -p 87 home -W %h:%p + +host home-server + hostname 192.168.1.15 + user ahosking + ProxyCommand ssh -fNg -R 8700:localhost:22 -p 87 home -W %h:%p diff --git a/install.sh b/install.sh index ab99d39..145deaf 100755 --- a/install.sh +++ b/install.sh @@ -13,18 +13,18 @@ export EXTRA_DIR mkdir -p ~/apps ### install packages -sudo apt-get install -y -f python-pip python-dev powerline arandr +## sudo apt-get install -y -f python-pip python-dev powerline arandr ## install kryptonite -curl https://krypt.co/kr | sh +##curl https://krypt.co/kr | sh #vim backup folders mkdir -p ~/.vim/{backup_files,swap_files,undo_files} #install vundle -git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +##git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim #Install pyenv -git clone https://github.com/pyenv/pyenv.git ~/.pyenv +##git clone https://github.com/pyenv/pyenv.git ~/.pyenv # Bunch of symlinks ln -sfv ~/dotfiles ~/.dotfiles @@ -33,6 +33,8 @@ ln -sfv ~/.vim/bundle/vimspectr/shell ~/.vimspectr-shell ln -sfv "$DOTFILES_DIR/run/.profile" ~ ln -sfv "$DOTFILES_DIR/run/.xprofile" ~ ln -sfv "$DOTFILES_DIR/run/.bashrc" ~ +ln -sfv "$DOTFILES_DIR/.ssh/config.d" ~/.ssh/config.d +ln -sfv "$DOTFILES_DIR/.ssh/config" ~/.ssh/config mkdir ~/bin ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise ln -sfv "$DOTFILES_DIR/.screenlayout" ~