Skip to content

Instantly share code, notes, and snippets.

@pplmx
Last active October 27, 2022 11:23
Show Gist options
  • Save pplmx/690ad72289beedb8015217fb579204f4 to your computer and use it in GitHub Desktop.
Save pplmx/690ad72289beedb8015217fb579204f4 to your computer and use it in GitHub Desktop.
~/.ssh/config Speeding up SSH Connection Creation
Host *
TCPKeepAlive yes
ServerAliveInterval 60
ServerAliveCountMax 30
Compression yes
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist 8h
# StrictHostKeyChecking no
PreferredAuthentications publickey,password
IdentityFile ~/.ssh/id_ed25519
Host github.com
HostName github.com
Host gitee.com
HostName gitee.com
Host 201
HostName 192.168.91.201
User root
Host 202
HostName 192.168.91.202
User root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment