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 based authentication not available #8

Open
kraf opened this issue May 11, 2015 · 5 comments
Open

Password based authentication not available #8

kraf opened this issue May 11, 2015 · 5 comments

Comments

@kraf
Copy link

kraf commented May 11, 2015

On the homepage it says that I can authenticate with a password but I keep getting this error:

unable to authenticate, attempted methods [none publickey], no supported methods remain

I don't see a hidden flag in the config and I can't set it in my .ssh/config.

@mdevan
Copy link
Contributor

mdevan commented May 11, 2015

Password auth is available only if rtop has a pty. How are you running it?

@kraf
Copy link
Author

kraf commented May 11, 2015

I'm running it from the terminator terminal emulator with zsh. I just now tried bash and konsole (which comes with KDE) and screen but still no luck. I have OpenSuse 12.3 here at work. I will try again at home with a different setup to help isolate the issue.

@mdevan
Copy link
Contributor

mdevan commented May 11, 2015

See sshhelper.go#addPasswordAuth. It adds password auth to the list of auth mechanisms only if terminal.IsTerminal(0) is true. (Where terminal is golang.org/x/crypto/ssh/terminal and 0 is the stdin fd).

This is to prevent piping in passwords and to be able to put the terminal in raw mode so the password can be read in without echo.

You need to figure out why terminal.IsTerminal(0) is returning false for your setup.

@bdaniel7
Copy link

Same problem occurs on Windows 7, using rtop 1.0 with Go 1.5.1. rtop is running in command prompt (cmd.exe).

rtop: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

@ghost
Copy link

ghost commented Oct 25, 2019

I'm also able to replicate bdaniel7's issue on my Windows 10 Pro computer.

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

3 participants