Add Split SSH configurations

This commit is contained in:
Alexander Hosking 2018-10-16 01:40:31 -04:00
parent 7a0b41d1c7
commit c7e8d2cc0e
4 changed files with 33 additions and 4 deletions

3
.ssh/config Normal file
View File

@ -0,0 +1,3 @@
### Master SSH Config
Include config.d/*

1
.ssh/config.d/config.d Symbolic link
View File

@ -0,0 +1 @@
/home/ahosking/dotfiles/.ssh/config.d

23
.ssh/config.d/home Normal file
View File

@ -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

View File

@ -13,18 +13,18 @@ export EXTRA_DIR
mkdir -p ~/apps mkdir -p ~/apps
### install packages ### 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 ## install kryptonite
curl https://krypt.co/kr | sh ##curl https://krypt.co/kr | sh
#vim backup folders #vim backup folders
mkdir -p ~/.vim/{backup_files,swap_files,undo_files} mkdir -p ~/.vim/{backup_files,swap_files,undo_files}
#install vundle #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 #Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv ##git clone https://github.com/pyenv/pyenv.git ~/.pyenv
# Bunch of symlinks # Bunch of symlinks
ln -sfv ~/dotfiles ~/.dotfiles 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/.profile" ~
ln -sfv "$DOTFILES_DIR/run/.xprofile" ~ ln -sfv "$DOTFILES_DIR/run/.xprofile" ~
ln -sfv "$DOTFILES_DIR/run/.bashrc" ~ 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 mkdir ~/bin
ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise
ln -sfv "$DOTFILES_DIR/.screenlayout" ~ ln -sfv "$DOTFILES_DIR/.screenlayout" ~