xanzy / ssh-agent Goto Github PK
View Code? Open in Web Editor NEWCreate a new SSH agent on any type of OS (so including Windows)
License: Apache License 2.0
Create a new SSH agent on any type of OS (so including Windows)
License: Apache License 2.0
As discussed on the rclone forum it would be great if this library could work with the ssh agent which comes with git-bash.
This is a packaged up version of cygwin and is very popular for running git on windows.
For example git-bash is installed on all Azure pipelines builders and GitHub actions builders by default.
I guess that in this case the library should just use the unix way of connecting to the ssh-agent. Perhaps detected by the presence of the correct environment variables?
Using Go 1.11 beta 1, I get the following errors:
# github.com/xanzy/ssh-agent
-: Pointer redeclared in this block
./pageant_windows.go:6:62: other declaration of Pointer
./pageant_windows.go:144:43: cannot convert nameP (variable of type *uint16) to syscall.Pointer
./pageant_windows.go:144:68: cannot convert nameP (variable of type *uint16) to syscall.Pointer
./pageant_windows.go:113:46: cannot convert ptr (variable of type uintptr) to syscall.Pointer
./pageant_windows.go:122:19: cannot convert &(mapNameBytesZ[0]) (value of type *byte) to syscall.Pointer
./pageant_windows.go:125:69: cannot convert &cds (value of type *copyData) to syscall.Pointer
./pageant_windows.go:33:2: "unsafe" imported but not used
I have a Mac and built by running:
GOOS=windows go test ./...
Hi Sander,
I came across the following error message, more than a few times ;-)
verifying go.mod: github.com/xanzy/[email protected]/go.mod: cannot authenticate record data in server response
Please forgive me if I draw the wrong conclusion, just started Go programming for a terraform provider so this is all pretty new to me.
But, I am on a Mac M1 (darwin/arm64) I came across the same error message wether is was during the go get of the terraform-provider-sdk v2.7.0, terraform-exec or the install of goreleaser.
I think it al comes down to the dependency off ssh-agent on go-winio v0.4.14 (see error messages below)
From version >= v0.4.17 all goes well and the go-winio installs without any issues.
go install github.com/goreleaser/goreleaser@latest: github.com/goreleaser/goreleaser@none updating to.
github.com/goreleaser/goreleaser@v0.174.1 requires.
github.com/goreleaser/nfpm/v2@v2.6.0 requires.
github.com/go-git/go-git/v5@v5.3.0 requires.
github.com/xanzy/ssh-agent@v0.3.0: verifying go.mod: github.com/xanzy/ssh-agent@v0.3.0/go.mod: cannot
authenticate record data in server response```
```go get github.com/Microsoft/go-winio@v0.4.14
# github.com/Microsoft/go-winio/pkg/guid
/Users/me/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.14/pkg/guid/guid.go:47:11: undefined: windows.GUID```
Could you create the tag v3.3.3 with the fix for windows?
I would then open an MR in go-git.
Thanks.
I use this library in rclone (thank you very much) for windows ssh support.
I recently had a request rclone/rclone#2988 for adding support for "Windows 10 native ssh-agent".
According to one of the posts on that issue
It uses a Named Pipe located at
\\.\pipe\openssh-ssh-agent
Could this library be tweaked to allow that as well as pagent?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.