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?
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?