I have a scp client in golang provided to me but been getting errors, I was informed that the problem was in this section.
if err := session.Run("/usr/bin/scp -qrt ./"); err != nil {
panic("Failed to run: " + err.Error())
}
I was informed that the problem is that scp wasn't in the path, so searched for scp on and replaced the path which is "C:\cygwin64\bin"
I run it this time and it has no errors, although it just stays open and doesn't exit. I have ctrl+c to exit the program.
I am new to ssh and scp so I would appreciate all the help, Thanks.