Skip to content

sftp.NewClient returns "EOF" error #506

@mraxrorxon

Description

@mraxrorxon

I create sshClient like this:
if sshClient, err = ssh.Dial("tcp", addr, clientConfig); err != nil {
return nil, err
}; and sshClient is created successfully, after that create sftp client like this:

if sftpClient, err = sftp.NewClient(sshClient); err != nil {
return nil, err
} here I get an error "EOF"
Please help this, where is a problam?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions