Documentation
¶
Overview ¶
Package vsocksshproxy opens a raw byte tunnel to a guest-agent's ssh port, which itself proxies straight to the guest's local sshd - no framing, no agent-level auth.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is one raw byte tunnel to a guest-agent's ssh port, reached by dialling a vsock UDS multiplexer path.
func Start ¶
Start dials udsPath (a Firecracker/Cloud Hypervisor vsock UDS multiplexer) on the guest-agent's ssh port. Callers must call Close when done.
func (*Session) CloseWrite ¶
CloseWrite half-closes the write side, signalling EOF to the guest-agent (and, through it, the guest's sshd) while still allowing reads - used when the client is done sending but the guest may still have a response coming. Returns an error if the underlying connection doesn't support half-close.