Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben McGinnis benmcginnis

  • Yext, Inc.
  • Alexandria, VA
View GitHub Profile
@benmcginnis
benmcginnis / sftp_example.go
Created Jan 11, 2016
Golang: Connect to SFTP Server via Keyboard Interactive Password
View sftp_example.go
// much help received from https://github.com/mindreframer/golang-stuff/blame/master/github.com/mitchellh/packer/communicator/ssh/password.go
package main
import (
"fmt"
"github.com/pkg/sftp"
"golang.org/x/crypto/ssh"
)