This is Mondoo's fork of hnakamur/go-scp, which the original author stopped maintaining. It is maintained here, and kept building and tested across the platforms Go supports.
OpenSSH has deprecated the scp protocol in favour of SFTP, so prefer SFTP for new work. The scp path remains useful for reaching hosts where the SFTP subsystem is unavailable, which is why this library is still here.
A scp client library written in Go. The remote server must have the scp command.
Please refer to the example at pkg.go.dev.
MIT