[GH-ISSUE #836] No double auth #482

Closed
opened 2026-02-26 23:59:42 +03:00 by kerem · 9 comments
Owner

Originally created by @Sakubz on GitHub (Oct 29, 2018).
Original GitHub issue: https://github.com/electerm/electerm/issues/836

Electerm version: 0.25.0

Operating system(linux, macos, or windows?): windows

Current Behavior

When i log to SSH, this message appear :

Error: All configured authentication methods failed
at t.once (http://localhost:3075/js/electerm.0.25.0-b6000b167a482ae0d8e2e3ba44fa8199087bbd10.js:9:795930)
at WebSocket.o (http://localhost:3075/js/electerm.0.25.0-b6000b167a482ae0d8e2e3ba44fa8199087bbd10.js:9:760802)

Possible Solution

Add double auth ?

Steps to Reproduce

  1. Create ssh server
  2. add key auth + password auth into serv
  3. try to connect with key priv ssh and prompt for password ( masked if possible ) and go connect

Context (Environment)

i juste want connect to my ssh server

Suggestions?

Can you add a "explorer" bloc at left ? For search any bookmarked ssh, like mremoteNG :) Thanks for your job !!!

Originally created by @Sakubz on GitHub (Oct 29, 2018). Original GitHub issue: https://github.com/electerm/electerm/issues/836 <!--- Provide some basic info --> ## Electerm version: 0.25.0 ## Operating system(linux, macos, or windows?): windows ## Current Behavior When i log to SSH, this message appear : Error: All configured authentication methods failed at t.once (http://localhost:3075/js/electerm.0.25.0-b6000b167a482ae0d8e2e3ba44fa8199087bbd10.js:9:795930) at WebSocket.o (http://localhost:3075/js/electerm.0.25.0-b6000b167a482ae0d8e2e3ba44fa8199087bbd10.js:9:760802) ## Possible Solution Add double auth ? ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Create ssh server 2. add key auth + password auth into serv 3. try to connect with key priv ssh and prompt for password ( masked if possible ) and go connect ## Context (Environment) i juste want connect to my ssh server ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too --> Can you add a "explorer" bloc at left ? For search any bookmarked ssh, like mremoteNG :) Thanks for your job !!!
kerem 2026-02-26 23:59:42 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@zxdong262 commented on GitHub (Oct 30, 2018):

I tested loging with private key, it works, did you put your pubkey in server's .ssh/authorized_keys?

<!-- gh-comment-id:434293181 --> @zxdong262 commented on GitHub (Oct 30, 2018): I tested loging with private key, it works, did you put your pubkey in server's `.ssh/authorized_keys`?
Author
Owner

@Sakubz commented on GitHub (Oct 30, 2018):

Yeah, but my server (at work) need a ssh key (it's ok) but after, the server need a password for login, not the password of the key ^^
so when i try to connect, with option ssh key, it's ok but the prompt password is not effect ans i can't connect
Have a good day :)

(i'm french, i wish you can read my english well ^^')

30 octobre 2018 14:11 "ZHAO Xudong" <notifications@github.com (mailto:notifications@github.com?to=%22ZHAO%20Xudong%22%20notifications@github.com)> a écrit:
I tested loging with private key, it works, did you put your pubkey in server's .ssh/authorized_keys?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (https://github.com/electerm/electerm/issues/836#issuecomment-434293181), or mute the thread (https://github.com/notifications/unsubscribe-auth/AqgWuXuWUFcKpALx_JDVUnIOX772DPhWks5uqFATgaJpZM4X-1h9).

<!-- gh-comment-id:434318215 --> @Sakubz commented on GitHub (Oct 30, 2018): Yeah, but my server (at work) need a ssh key (it's ok) but after, the server need a password for login, not the password of the key ^^ so when i try to connect, with option ssh key, it's ok but the prompt password is not effect ans i can't connect Have a good day :) (i'm french, i wish you can read my english well ^^') 30 octobre 2018 14:11 "ZHAO Xudong" <notifications@github.com (mailto:notifications@github.com?to=%22ZHAO%20Xudong%22%20<notifications@github.com>)> a écrit: I tested loging with private key, it works, did you put your pubkey in server's .ssh/authorized_keys? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/electerm/electerm/issues/836#issuecomment-434293181), or mute the thread (https://github.com/notifications/unsubscribe-auth/AqgWuXuWUFcKpALx_JDVUnIOX772DPhWks5uqFATgaJpZM4X-1h9).
Author
Owner

@zxdong262 commented on GitHub (Oct 31, 2018):

@Sakubz Do you know how to set a server like this? I would like to solve this problem, just I do not have a server like this yet.

<!-- gh-comment-id:434654951 --> @zxdong262 commented on GitHub (Oct 31, 2018): @Sakubz Do you know how to set a server like this? I would like to solve this problem, just I do not have a server like this yet.
Author
Owner

@Sakubz commented on GitHub (Oct 31, 2018):

Yes sure :)
You need a server on linux (mine is Debian 9), make this to connect with your RSA key et add a password auth.
In your sshd_config add this :
AuthenticationMethods publickey,password

if is not clear, make your server ok with RSA key login and at the end of your sshd_conf add :
AuthenticationMethods publickey,password
PasswordAuthentication yes
PubkeyAuthentication yes

With that, you need your RSA key to connect and the server will prompt for your password

<!-- gh-comment-id:434688046 --> @Sakubz commented on GitHub (Oct 31, 2018): Yes sure :) You need a server on linux (mine is Debian 9), make this to connect with your RSA key et add a password auth. In your sshd_config add this : AuthenticationMethods publickey,password if is not clear, make your server ok with RSA key login and at the end of your sshd_conf add : AuthenticationMethods publickey,password PasswordAuthentication yes PubkeyAuthentication yes With that, you need your RSA key to connect and the server will prompt for your password
Author
Owner

@zxdong262 commented on GitHub (Nov 1, 2018):

@Sakubz Thank you for the feedback, I will try to make it work.

<!-- gh-comment-id:434891639 --> @zxdong262 commented on GitHub (Nov 1, 2018): @Sakubz Thank you for the feedback, I will try to make it work.
Author
Owner

@zxdong262 commented on GitHub (Dec 5, 2018):

@Sakubz Released new version, support auth with publickey + password now

<!-- gh-comment-id:444508245 --> @zxdong262 commented on GitHub (Dec 5, 2018): @Sakubz Released new version, support auth with publickey + password now
Author
Owner

@Sakubz commented on GitHub (Dec 5, 2018):

Thanks !! :o

<!-- gh-comment-id:444535477 --> @Sakubz commented on GitHub (Dec 5, 2018): Thanks !! :o
Author
Owner

@zxdong262 commented on GitHub (Dec 6, 2018):

@Sakubz How is it going?

<!-- gh-comment-id:444726492 --> @zxdong262 commented on GitHub (Dec 6, 2018): @Sakubz How is it going?
Author
Owner

@Sakubz commented on GitHub (Dec 6, 2018):

Awesome ! :)
It's work perfectly, when i connect on my server with double auth, the prompt is here and i can put a password (hided) and go connect :D
Thanks a lot ! You are the first who do this option with an eletron based ssh client :) !

<!-- gh-comment-id:444763166 --> @Sakubz commented on GitHub (Dec 6, 2018): Awesome ! :) It's work perfectly, when i connect on my server with double auth, the prompt is here and i can put a password (hided) and go connect :D Thanks a lot ! You are the first who do this option with an eletron based ssh client :) !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#482
No description provided.