Documentation
¶
Overview ¶
Copyright (C) 2016 Krešimir Nesek * Copyright (C) 2021 Piers Harding * * Based on blog post by Svett Ralchev: http://blog.ralch.com/tutorial/golang-ssh-tunneling/ * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SSHAgent ¶
func SSHAgent() ssh.AuthMethod
Types ¶
type SSHTunnel ¶
type SSHTunnel struct { Local *Endpoint Server *Endpoint Remote *Endpoint Intermediate *Endpoint Config *ssh.ClientConfig HopConfig *ssh.ClientConfig }
func NewSSHTunnel ¶
func NewSSHTunnelFromHostStrings ¶
sshHostDef [email protected]:port tunnelDef local_port:remote_host:remote_port
Click to show internal directories.
Click to hide internal directories.