question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS WebSSH app asks for password even when the server doesn't

See original GitHub issue

Bug description

We (@Tailscale) have a custom SSH server that runs over Wireguard. Because we already know the user’s identity from Wireguard, we skip all the SSH-level authentication. When the SSH client connects and requests auth type “none”, usually the SSH server replies with a rejection and a list of which auth types can proceed. Our SSH server, on the other hand, accepts auth type none immediately. This confuses the WebSSH app which assumes that if you don’t have a private key you must need a password.

Our workaround that we’ve told users is to set a fake password. The password is never used (never sent on the wire) but it makes the WebSSH app happy.

Screenshots

IMG_0091 IMG_0092

Steps to reproduce

  1. try to ssh to 188.166.70.128 on port 2222 (any username)
  2. notice that WebSSH asks for a password, even though that test server never asks for any auth types
  3. enter a dummy password to proceed (any password will make the app happy, even though it’s never sent to the server)

/cc @maisem

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
isonthelinecommented, Jul 20, 2022

It’s almost done. A beta release will be available tomorrow, July 21.

0reactions
isonthelinecommented, Jul 22, 2022

Thank you a lot for your feedback Brad 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

why does ssh keep asking for password? - Apple Developer
I checked system.log, no help. i newly found this - though it doesn't tell me what exactly i can fix. ./install.
Read more >
Tunnel active for only a few moments after i switch ... - GitHub
Device : iPhone 11 Pro Max; OS : iOS 14.2 Public Beta; WebSSH free ... from this point RDP app takes the credentials...
Read more >
Previous Releases - WebSSH
Added : Ability to manage macros offline (inside connection's settings); Fixed : Web browser login/password can now be used even when no /etc/hosts...
Read more >
Why am I still getting a password prompt with ssh with public ...
My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 bit. I have followed the directions. I...
Read more >
Best SSH Client Apps for iOS To Manages Remote Servers
At times, the app doesn't even connect to the server and the logs have no clear description of it. webSSH. Read: 5 Best...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found