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:
parent
adbe85b7c1
commit
fee5f79d64
8
makefile
8
makefile
|
@ -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
9
ssh/config
Normal file
|
@ -0,0 +1,9 @@
|
|||
ServerAliveInterval 300
|
||||
ServerAliveCountMax 3
|
||||
|
||||
Host git.jpatrick.io
|
||||
Port 222
|
||||
|
||||
Host *
|
||||
UseRoaming no
|
||||
|
Loading…
Reference in New Issue
Block a user