diff -up go.crypto/ssh/client.go.friend go.crypto/ssh/client.go --- go.crypto/ssh/client.go.friend 2014-09-05 18:51:15.369742521 +0200 +++ go.crypto/ssh/client.go 2014-09-05 18:50:48.405679424 +0200 @@ -173,7 +173,12 @@ func parseTCPAddr(b []byte) (*net.TCPAdd } ip := net.ParseIP(string(addr)) if ip == nil { - return nil, b, false + ips, err := net.LookupIP(string(addr)) + if err == nil && len(ips) != 0 { + ip = ips[0] + } else { + return nil, b, false + } } return &net.TCPAddr{IP: ip, Port: int(port)}, b, true }