Adding SSH config to dotfiles.

This currently included 2 important settings.

1. Keep alive for SSH
2. The correct port for SSH on git.jpatrick.io
This commit is contained in:
James Patrick 2019-04-15 20:10:13 -04:00
parent adbe85b7c1
commit fee5f79d64
2 changed files with 16 additions and 1 deletions

View File

@ -4,10 +4,16 @@ cmd_exist = $(shell (command -v $(1) 1>&2 >/dev/null && echo true || echo false)
install: | init update
init: vim_init tmux_init
init: vim_init tmux_init ssh_init
@ ln -svf $(SRC_DIR)/bin/post-merge $(SRC_DIR)/.git/hooks/post-merge
update: vim_update
ssh_init:
$(info => Setting up ssh config)
@ ! [ -e ~/.ssh/config ] \
&& ln -svf $(SRC_DIR)/ssh/config ~/.ssh/config \
|| echo " ~/.ssh/config already exist. Skipping."
tmux_init:
$(info => Setting up tmux)
@ [ $(call cmd_exist,'tmux') ] \

9
ssh/config Normal file
View File

@ -0,0 +1,9 @@
ServerAliveInterval 300
ServerAliveCountMax 3
Host git.jpatrick.io
Port 222
Host *
UseRoaming no