Skip to content

Instantly share code, notes, and snippets.

@zigomir
Last active December 15, 2016 23:09
Show Gist options
  • Save zigomir/3f53fd803e3a36ba255b to your computer and use it in GitHub Desktop.
Save zigomir/3f53fd803e3a36ba255b to your computer and use it in GitHub Desktop.
DevOps helpers

SSH Agent

ssh-add -L # checek if key added
ssh-add # add it

# Permanently add to macOS - http://unix.stackexchange.com/a/140077
ssh-add -K ~/.ssh/id_rsa

Keep SSH session alive

vim /etc/ssh/sshd_config

Add this to file

ClientAliveInterval 30
TCPKeepAlive yes
ClientAliveCountMax 99999
sudo service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment