SSH: ssh Client
ssh Client
2023-09-11 14:16:16 时间
# 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"
相关文章
- JavaWeb_(SSH论坛)_四、页面显示
- ssh(Spring+Spring mvc+hibernate)——saveDept.jsp
- 【问题解决方案】本地仓库删除远程库后添加到已有github仓库时仓库地址找不到的问题(github仓库SSH地址)
- H3CNE学习---dhcp、telnet、ssh、ftp
- python通过socket实现多个连接并实现ssh功能详解
- java三大框架SSH(Struts2 Spring Hibernate)
- jenkins Publish over SSH 的配置与使用
- 【ubuntu】ubuntu下安装开启ssh服务
- ubuntu使用ssh登入不执行.bashrc解决方法
- lotus-miner 公共IP ssh端口转发 接收存储订单
- ssh免密码登陆远程服务器三种方式(三)
- ssh tunnel 上网
- ssh端口转发