blacknon / go-sshlib

easy ssh library for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

go3ranh opened this issue · comments

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.

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