jaredwarren / ssh

SSH connection wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DB

SSH connection wrapper. One step ssh (tcp) connection.

The main purpose is to provide support for github.com/jaredwarren/db

TODO: add support for password, right now ssh key is required

Usage

connect

c :=  &ssh.Conn {
        Host: "123.123.123.123",
        Port: 22,
        User: "root",
        Key: "~/.ssh/id_rsa",
    }
sshc := c.Connect()

About

SSH connection wrapper


Languages

Language:Go 100.0%