Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
scp
✓ github.com/bramvdbogaerde/go-scp
Copies a file from a remote server using SCP.
package main
import (
"context"
"github.com/bramvdbogaerde/go-scp"
"golang.org/x/crypto/ssh"
)
func main() {
client, _ := ssh.Dial("tcp", "example.com:22", &ssh.ClientConfig{})
scpClient := scp.NewClient(client)
_ = scpClient.CopyFromRemote(context.Background(), "/remote/path", "/local/path")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.