Last active
June 28, 2017 01:17
-
-
Save Telematica/c67248aed970796f636a1b413adf29cb to your computer and use it in GitHub Desktop.
SSH Tricks and Handful commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##http://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/ | |
#Global Configuration | |
#Add the following line to the /etc/ssh/ssh_config file: | |
ServerAliveInterval 60 | |
#The number is the amount of seconds before the server with send the no-op code. | |
#Current User Configuration | |
#Add the following lines to the ~/.ssh/config file (create if it doesn’t exist) | |
Host * | |
ServerAliveInterval 60 | |
#Make sure you indent the second line with a space. | |
#Per-Host Configuration | |
#If you only want to enable keep alive for a single server, | |
#you can add that into the ~/.ssh/config file with the following syntax: | |
Host *hostname.com | |
ServerAliveInterval 60 | |
##-------------------------------------------------------------------------## | |
##-------------------------------------------------------------------------## | |
##-------------------------------------------------------------------------## | |
#https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html | |
Host identity | |
HostName bitbucket.org | |
IdentityFile ~/.ssh/maniak | |
# | |
Host * | |
User git | |
Hostname bitbucket.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ | |
#https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 | |
#https://linux.die.net/man/1/ssh-keygen | |
#https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html | |
ssh-keygen -t rsa -C "[email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment