Last active
January 22, 2019 16:27
-
-
Save hvmonteiro/135837ade479a025e822c321d4a305b2 to your computer and use it in GitHub Desktop.
SSH Configuration file
This file contains 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
# | |
# WARNING: This configuration file is only suitable for usage in development environments on private networks, | |
# as it supresses and works around most information messages about SSH related security issues! | |
# | |
# Always authenticate with user 'root' | |
Host * | |
User root | |
# Automatically add remote host keys | |
AddKeysToAgent Yes | |
# Keep connection alive by sending a message every n seconds | |
ServerAliveInterval 60 | |
# Don't check if remote host key changed, that is, if it's different from the one stored in local 'known_hosts' file. | |
StrictHostKeyChecking No | |
# Suppress information messages (ex: banners, etc.) | |
LogLevel error | |
Host *.github.com | |
Hostname ssh.github.com | |
Port 443 | |
ProxyCommand nc -x connect --proxy localhost:3128 --proxy-type http %h %p | |
Host *.gitlab.com | |
Hostname ssh.gitlab.com | |
Port 443 | |
ProxyCommand nc -x connect --proxy localhost:3128 --proxy-type http %h %p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This file should be created, or it's contents added, to the local file ~/.ssh/config .
You can also add it's contents to /etc/ssh/ssh_config if you wish this settings to be set globally for all local users.
NOTICE: Please bare in mind the security issues involved when using this settings.