Skip to content

Instantly share code, notes, and snippets.

@hvmonteiro
Last active January 22, 2019 16:27
Show Gist options
  • Save hvmonteiro/135837ade479a025e822c321d4a305b2 to your computer and use it in GitHub Desktop.
Save hvmonteiro/135837ade479a025e822c321d4a305b2 to your computer and use it in GitHub Desktop.
SSH Configuration file
#
# 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
@hvmonteiro
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment