func Dial(host string, port string, username string, password string) (*ssh.Client, error) {
	config := &ssh.ClientConfig{
		Timeout: 1 * time.Second,
		User:    username,
		Auth: []ssh.AuthMethod{
			ssh.Password(password),
		},
		HostKeyCallback: ssh.InsecureIgnoreHostKey(),
	}
	return ssh.Dial("tcp", host+":"+port, config)
}
Dial utility function for getting an SSH client
package ssh
import (
	"bytes"
	"errors"
	"fmt"
	"log"
	"time"
	"golang.org/x/crypto/ssh"
)