Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password authentication is not supported for lib/ssh/ssh.go #1

Open
bgmerrell opened this issue Sep 24, 2013 · 0 comments
Open

Password authentication is not supported for lib/ssh/ssh.go #1

bgmerrell opened this issue Sep 24, 2013 · 0 comments

Comments

@bgmerrell
Copy link
Owner

Unfortunately, there does not appear to be an sftp or scp library in Go. code.google.com/p/go.crypto/ssh can run remote commands and return the the stdout and stderr, which geto uses for other functions. code.google.com/p/go.crypto/ssh might be able to be extended for scp and/or sftp, but in lieu of having such functionality readily available, geto will, for now, just run a separate command-line scp process in lib/ssh/ssh.go:Scp(). This is unfortunate because we use password authentication if the user was wanting to run in that mode. The user will have to have public key authorization working in their environment.

bgmerrell added a commit that referenced this issue Sep 25, 2013
I cannot find a scp or sftp library for go.  go.crypto/ssh doesn't
implement either.  In lieu of creating an scp or sftp library, I am
punting and simpy executing scp (via the exec package).  However, this
is a bit ugly (considering we're using go.crypto/ssh sessions for
everything else), and it means that geto can't support password
authentication.  Issue #1 has been created to track this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant