ä»åã¯ãGolangã®golang.org/x/crypto/sshããã±ã¼ã¸ã使ã£ã¦ãSSHãµã¼ããæ§ç¯ãã¦ã¿ã¾ããã ããªããããã ãªå®è£ ã§ããããªã¢ã¼ãããSSHæ¥ç¶ãã¦ã対話çã«ã³ãã³ããå®è¡ã§ããã¨ããã¾ã§å®è£ ãã¾ããã ã³ã¼ã github.com package main import ( "golang.org/x/crypto/ssh" "log" "net" "io/ioutil" "fmt" "os/exec" "github.com/kr/pty" "sync" "io" ) func main() { serverConfig := &ssh.ServerConfig{ NoClientAuth: true, } privateKeyBytes, err := ioutil.ReadFile("id_rsa") if err != nil { log.Fatal(
{{#tags}}- {{label}}
{{/tags}}