Go ssh client configured from openssh config files
host, err := ssh_client.New("ProxyChainHost", ssh_client.DefaultUserSettings)
if err != nil {
log.Fatalln(err)
}
conn, err := host.Dial("tcp")
if err != nil {
log.Fatalln(err)
}
defer conn.Close()
// From here we can use `conn` to Dial remote ports and/or open a session.
Host ProxyChainHost
Hostname FinalHostname
ProxyJump %r@FirstProxy,ConfiguredProxy
Host ConfiguredProxy
Hostname intnames.dedibox.vdg.name
User root
- The keys required for all hosts must be loaded in ssh-agent before connection. (loading keys is not supported).
- Entries in
known_hostsmust be present (Adding entries is not supported).