Skip to content

Instantly share code, notes, and snippets.

View benmcginnis's full-sized avatar

Ben McGinnis benmcginnis

  • Yext, Inc.
  • Alexandria, VA
View GitHub Profile
@benmcginnis
benmcginnis / sftp_example.go
Created January 11, 2016 16:17
Golang: Connect to SFTP Server via Keyboard Interactive Password
// 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"
)