SSH: ssh Client
# 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"
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律