Juniper/go-netconf

Compatible with Junos "outbound-ssh"?

Closed this issue · 1 comments

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?

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