# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host *
#IgnoreUnknown *
AddKeysToAgent yes
AddressFamily any
BatchMode no
CanonicalizeHostname no
Compression yes
## Authentication ##
#CASignatureAlgorithms
#CertificateFile
ChallengeResponseAuthentication yes
CheckHostIP yes
HostbasedAuthentication yes
NumberOfPasswordPrompts 2
PasswordAuthentication yes
PreferredAuthentications gssapi-with-mic,hostbased,publickey,keyboard-interactive,password
PubkeyAuthentication yes
## Connection ##
#BindAddress
#BindInterface
ConnectionAttempts 1
#ConnectionTimeout
Port 22
RequestTTY auto
ServerAliveCountMax 3
ServerAliveInterval 0
TCPKeepAlive yes
## Command ##
#LocalCommand echo -e '\e[7mAccess Another Machine\e[0m'
PermitLocalCommand yes
#RemoteCommand hostname;ip a
## Environ ##
#SendEnv LIA_*
#SetEnv LIA_p=pp
## Forward ##
ClearAllForwardings no
#DynamicForward
ExitOnForwardFailure no
ForwardAgent yes
ForwardX11 yes
#ForwardX11Timeout
ForwardX11Trusted yes
GatewayPorts yes
#LocalForward
#PermitRemoteOpen
#RemoteForward *:333 target:80 # Remote sshd监听了333端口, 转发流量到target:80
#RemoteForward *:333 # Remote sshd 开启socks代理
## GSSAPI ##
#GSSAPIAuthentication no
#GSSAPIClientIdentity no
#GSSAPIDelegateCredentials no
#GSSAPIKeyExchange no
## Identity ##
FingerprintHash sha256
UserKnownHostsFile ~/.ssh/known_hosts ~/.ssh/known_hosts2
GlobalKnownHostsFile /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2
HashKnownHosts no
IdentitiesOnly yes
IdentityAgent $SSH_AUTH_SOCK
#IdentityFile ~/.ssh/id_dsa ~/.ssh/id_ecdsa ~/.ssh/id_ecdsa_sk ~/.ssh/id_ed25519 ~/.ssh/id_ed25519_sk ~/.ssh/id_rsa
StrictHostKeyChecking accept-new
UpdateHostKeys yes
VerifyHostKeyDNS no
VisualHostKey yes
## Log ##
LogLevel INFO
#LogVerbose
## Proxy ##
#ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:80 %h %p
#ProxyCommand ssh -p 22 root@jumper -W %h:%p
#ProxyJump root@jumper:22 # ** Can't use in Host * !!!
Include
Host strongswan
HostName strongswan.lawlion.tv
User root
Port 22
PreferredAuthentications publickey
IdentityFile "C:/Program Files/Git/etc/ssh/salamander"