[go-nuts] Remote address in SSH DialTCP must be IP address

2017-01-13 Thread Dave Cheney
I'm pretty sure you can use the Dial method above, DialTCP was added to avoid using the DNS server at the remote end (I think, it's been years) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema

[go-nuts] Remote address in SSH DialTCP must be IP address

2017-01-13 Thread tgrosinger
In the crypto/ssh package, the DialTCP function requires that the remote address be presented as a TCPAddr. See https://github.com/golang/crypto/blob/master/ssh/tcpip.go#L324 This means the remote address must be an IP address and port combination, domain names are not possible. The specificati