blacknon / go-sshlib

easy ssh library for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Error - port and user switched

domoran opened this issue · comments

On the example in the README.md file the port and user arguments of CreateClient are switched ... This yields a non obvious error getAddrInfoW: class not found ... It cost me some time to figure out the reason.

    // Connect ssh server
    err := con.CreateClient(host, user, port, []ssh.AuthMethod{authMethod})
    if err != nil {
        fmt.Println(err)
        os.Exit(1)
    }

Please correct the example in the readme too ;-)

Oh, I just noticed.
Thank you, I'll fix it!

Addressed at pr #24 .
Thanks!