con.CreateClient(host, user, port, []ssh.AuthMethod{authMethod}) port and user arguments are swapped in example code
go3ranh opened this issue · 1 comments
go3ranh commented
I wanted to try this out and could not get a connection
dial tcp: lookup tcp/: Servname not supported for ai_socktype
in the example code in the readme file the port and user variables need to be swapped.
go3ranh commented
I am so terribly sorry for my inconvenience, I have figured it out, it was my fault!!