Categorygithub.com/sarfarazahmad89/go-ssh-agent
modulepackage
0.0.0-20240404191811-cc597e375bf3
Repository: https://github.com/sarfarazahmad89/go-ssh-agent.git
Documentation: pkg.go.dev

# README

Go SSH Agent as executables

SSH agent, derived from golang's rich SSH libraries, turned into standalone executables for Windows and Linux.

You might prefer this over Microsoft's port of OpenSSH as that one lacks a few things like, timed expiration when loading new credentials

INSTALL

Generally you can just install this with and it should just install to your $GOPATH/bin/,

go install github.com/sarfarazahmad89/go-ssh-agent

Alternatively, BUILD, like

Linux or Windows
$ git clone https://github.com/sarfarazahmad89/go-ssh-agent
$ cd go-ssh-agent
$ go build .
$ ./ssh_agent -h
Usage of ./ssh_agent:
  -sshpipe string
        UNIX socket for the OpenSSH agent (default "/home/ahmad/.ssh/ssh-auth-sock")
$ ./ssh_agent
2023/02/12 11:31:21 started ssh agent on `/home/user1/.ssh/ssh-auth-sock`
Cross build (Linux -> Windows)
$ git clone https://github.com/sarfarazahmad89/go-ssh-agent
$ cd go-ssh-agent
$ GOOS="windows" GOARCH="amd64" go build .