Skip to content

Instantly share code, notes, and snippets.

@jedy
jedy / go_scp.go
Last active December 30, 2025 11:27
an example of scp in golang
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
)
const privateKey = `content of id_rsa`