Skip to content

Does Goph support SSH connection to Cisco devices? #73

Open
@ricardo-ml

Description

@ricardo-ml

If support , how to connect it ?
I tested Cisco devices using the following code:

client, err := goph.NewConn(&goph.Config{
	Addr:     "1.1.1.1",
	User:     "aaa",
	Auth:     goph.Password("123456"),
	Port:     22,
	Callback: ssh.InsecureIgnoreHostKey(),
})
out, err := client.Run("show vlan")
fmt.Println(string(out))

then i got error is: wait: remote command exited without exit status or exit signal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions