跳到主要内容

SSH config

~/.ssh/config

Host $SSHD_HOST
User $USER
IdentityFile $PRIVATE_KEY

Host *
# Directs ssh to additionally check the host IP address in the known_hosts file.
CheckHostIP no
Compression yes
# Specifies whether the connection to the authentication agent will be forwarded to the remote machine.
ForwardAgent yes
# Specifies if ssh should never automatically add host keys to the ~/.ssh/known_hosts file, and refuses to connect to hosts whose host key has changed.
StrictHostKeyChecking no
TCPKeepAlive yes
# Specifies whether to verify the remote key using DNS and SSHFP resource records.
VerifyHostKeyDNS no