blacknon / go-sshlib

easy ssh library for golang
MIT License
37 stars 12 forks source link

con.CreateClient(host, user, port, []ssh.AuthMethod{authMethod}) port and user arguments are swapped in example code #22

Closed go3ranh closed 2 years ago

go3ranh commented 2 years ago

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 2 years ago

I am so terribly sorry for my inconvenience, I have figured it out, it was my fault!!