Open fratrik opened 1 year ago
I am also having this problem
+1
This is on Linux (Arch) as well. I am not familiar with go, updated build instructions are needed.
I got a little further by banging rocks (and doing this: go mod init sga ; go mod tidy ; go mod vendor ; go build
)
# sga
./agent.go:54:108: undefined: ssh.Filter
./agent.go:66:33: undefined: knownhosts.OrderHostKeyAlgs
./agent.go:70:20: undefined: ssh.NewProxyConn
./agent.go:141:16: undefined: ssh.NewFilter
./delegated_client.go:608:4: unknown field KexCallback in struct literal of type ssh.Config
./delegated_client.go:611:3: unknown field DeferHostKeyVerification in struct literal of type ssh.ClientConfig
./delegated_client.go:629:44: undefined: ssh.NoMoreSessionRequestName
./delegated_client.go:631:50: undefined: ssh.NoMoreSessionRequestName
./delegated_client.go:634:51: undefined: ssh.NoMoreSessionRequestName
./delegated_client.go:652:14: c.sshClient.RequestKeyChange undefined (type *ssh.Client has no field or method RequestKeyChange)
./delegated_client.go:652:14: too many errors
So, a standard library was forked for some reason. I'm not really sure why, and there's no tests. It would be challenging to update this to modern go that supports arm
. I'm more interested in the underlying library to talk to mosh. It would be interesting to break that out into its own library for importing. As a gui though, it would be better suited to a gui friendly language.
https://github.com/StanfordSNR/crypto/commit/182a8be2f490f88d44c9cdd1fff78f0156c5c7b3
Doesn't work using homebrew either for intel Macs. Looking closer it looks like the team just hasn't kept up with the OS releases in general. Is this a dead project? Looking at check ins, it looks like no movement for 3+ years.
Sadly, yes, this does appear to be a dead project. The Stanford students working on it have graduated, and the professor leading the project seems to have moved on to other projects as well. Quite a shame, as a mosh developer in mobile-shell/mosh#120 emphatically pointed people here as the One True Solution.
The professor and the Mosh developer are the same person. :-) I think if somebody is willing to take this over, we're interested to hand this over and work with you. I spoke with the original developers (and somebody interested in taking this over) back on Oct. 5 and we were going to work on a transition plan, but I fear intervening events in the Middle East may have taken priority for them. :-(
I don't use mac, but I use the Nix sga-guardian
package for different architectures on Linux and there's one for aarch64-darwin
.
If you don't use nix as a package manager, you could try extracting the binaries.
https://github.com/StanfordSNR/guardian-agent/issues/33#issuecomment-1122643170 works for me™
Sadly it doesn't work with Go 1.22 since they removed GO111MODULE=off
support for go get
but everything I tried below it works.
I followed the brew instructions and got the following
doesn't produce any output
Not sure what this one is, but they produce segmentation faults
I tried downloading go so I could install from source, but could not figure that out.