Last active
October 27, 2022 11:23
-
-
Save pplmx/690ad72289beedb8015217fb579204f4 to your computer and use it in GitHub Desktop.
~/.ssh/config Speeding up SSH Connection Creation
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
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