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 specification (see https://tools.ietf.org/html/rfc4254#section-7.2) states that the remote "host to connect" "may be either a domain name or a numeric IP address". Why was this decision/limitation made? If I need to use a domain name should I just copy the library and make the changes I need? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.