Juniper / go-netconf

NETCONF implementation in Go.
Other
253 stars 110 forks source link

Compatible with Junos "outbound-ssh"? #84

Closed markuscraig closed 5 years ago

markuscraig commented 5 years ago

Has anyone gotten go-netconf to work with Junos "outbound-ssh" connections?

When using this Junos config, the Juniper device establishes a TCP connection to a host, and that host makes an SSH client connection back to the Juniper device (over the initial TCP connection).

The python ncclient works great with "outbound-ssh". ncclient uses python's socket.fromfd() to duplicate the established TCP socket and reuse for the SSH client.

I have tried updating go-netconf to allow empty addresses for ssh.NewSSHSession like this...

session, err := netconf.NewSSHSession(conn, "", config)

But it's not working for me. Any gotten this to work with Golang?

markuscraig commented 5 years ago

fyi, i got "outbound-ssh" fully working with a fork of go-netconf. closing the issue.