Skip to content

proposal: x/crypto/ssh: implement ControlMaster transport support #31874

Closed
@y3llowcake

Description

@y3llowcake

What version of Go are you using (go version)?

$ go version
go version go1.12.2 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/cy/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/cy/go"
GOPROXY=""
GORACE=""
GOROOT="/home/cy/go/go1.12.2"
GOTMPDIR=""
GOTOOLDIR="/home/cy/go/go1.12.2/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/cy/co/crypfork/crypto/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build098365928=/tmp/go-build -gno-record-gcc-switches"

Feature Request

I am trying to establish SSH sessions over a ControlMaster socket.
ControlMaster reference: https://linux.die.net/man/5/ssh_config
Protocol reference: https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.mux

I see two options to make this possible:

  1. Implement ControlMaster socket handshake and transport inside this library.
  2. Export a Transport interface and methods for reading and writing raw packets, and allow the ControlMaster details to be implemented outside the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions