Sign-in links
Some SSH servers do not ask for a code. They send a login message with a link, and they let you in only once you open that link and approve the sign-in on a web page. Tailscale SSH in check mode works this way: its message reads like “To authenticate, visit:” followed by a link.
ZestSSH shows such a message while it is still connecting, in a Finish signing in dialog, and gives you time to open the page and approve.
Availability
Section titled “Availability”| Platform | Status |
|---|---|
| Android | Full support |
| iOS | Full support |
| Windows | Full support |
| macOS | Full support |
| Linux | Full support |
On a computer (Windows, macOS, Linux) and on a tablet it is a dialog. On a phone it is a sheet that comes up from the bottom of the screen.
What you see
Section titled “What you see”- Connect as usual.
- If the server’s login message has an
https://link in it, the Finish signing in dialog appears. It shows, from top to bottom:- the user and host you are connecting to, such as
deploy@web-01.example.com - “The server sent this message, not ZestSSH. It waits until you finish signing in on the page it links to.”
- the server’s message (cleaned, see Security design), in a box that scrolls
- The link goes to and the web address’s host, such as
login.example.com - “The session opens by itself once you are done.”
- the user and host you are connecting to, such as
- Choose Open link, and approve the sign-in on the page that opens.
- Come back to ZestSSH. Once the server lets you in, the dialog closes and the session opens. There is nothing more to do.
The dialog appears over whatever screen is open, so it also shows for Run on hosts and workflows, which open no terminal.
The server’s message is also printed, dimmed, at the top of the terminal once the session opens, as every login message is. Run on hosts and workflows open no terminal, so there the message is shown only in the dialog.
The buttons
Section titled “The buttons”- Open link opens the link in your browser, outside ZestSSH. The dialog stays open while you approve. If no browser could open it, the dialog says “The link could not be opened. Copy it and open it in a browser.”
- Copy link copies the whole link, and ZestSSH says Link copied. Use it to open the link on another device or in another browser.
- Cancel stops the sign-in. The connection is closed without an error, the same as cancelling a password prompt. The dialog’s close button does the same.
Tapping outside the dialog, or pressing Escape, does not close it.
Open link and Copy link use the link whose host is shown after The link goes to. They never use any other text in the message.
How long ZestSSH waits
Section titled “How long ZestSSH waits”Usually ZestSSH gives a server 15 seconds to answer during sign-in. Once a login message with a link arrives, the server gets up to 5 minutes to let you in. If the server then asks you a question, the clock stops while you answer and starts again from 5 minutes.
The clock keeps running while the dialog is open. If the dialog has to wait (behind another connection’s dialog, or on a phone or tablet while the app is locked), that time counts too.
If the 5 minutes run out, the dialog closes and ZestSSH says “Sign-in timed out”: “web-01.example.com did not finish the sign-in in time.” Connect again to start a new sign-in. See Connection issues.
The dialog also closes by itself when the sign-in ends in any other way: the server lets you in, or the sign-in fails.
Several connections at once
Section titled “Several connections at once”When several connections get such a message at the same time, for example when you open a workspace, the dialogs come one after the other, oldest first. Each connection has its own 5 minutes, counted from when its message arrived.
On a phone or tablet (iOS, Android), a dialog that comes while the app is locked waits, and it appears once you unlock.
What counts as a link
Section titled “What counts as a link”- Only a link that starts with
https://brings up the dialog. A plainhttp://link, or any other kind of link, does not: that message is only printed in the terminal once the session opens, as before. - ZestSSH takes the first
https://link in the message. Punctuation at the end, such as a full stop or a closing bracket, is not part of the link. - A link is skipped, and the next
https://link in the message is tried, when it is very long, cannot be read as a web address, has no host, or has a user name before the host (such ashttps://name@login.example.com/). A link like that could look like it goes somewhere it does not. If no link is left, no dialog appears. - Only the server’s login message is checked. A link inside a server’s question (the Sign-in step dialog, see Keyboard-interactive) is shown as plain text, with no Open link button.
- A very long message is shortened in the dialog and ends with an ellipsis.
Where it does not appear
Section titled “Where it does not appear”The dialog appears for terminal sessions, SFTP only hosts, Run on hosts, Install on hosts… for a key, the first connection of Replace on all n hosts… (the one that signs in with the old login), and workflows you run yourself. For a host reached through jump hosts, it appears for the final host.
It does not appear, and ZestSSH does not wait the extra time, for:
- Jump hosts. A jump host’s own login message is not checked and is never shown. A jump host that waits for you to open a link times out, and the error names that jump host. See Jump host.
- Test full connection in the host editor. The test gives the server 8 seconds (120 once the server asks a question) and then says “Auth timed out after 8s”.
- Serial console sessions. See Serial. (A workflow you run yourself on a serial host signs in over SSH and does show it.)
- Server Monitor and its background checks. See Server Monitor.
- Automations that run by themselves: a scheduled task, a
zestssh://link, a run started by another app, or a run with an API key. Nobody is there to open the link, so the server gets the usual 15 seconds. A host that waits for a sign-in link cannot be used by these runs. See Automation. - The connection that proves a new key works, the second one of Replace on all n hosts… (Replace on its host… for one host). It signs in with the new key alone, shows no dialog and gets the usual 15 seconds. The first connection, which signs in with the old login, shows the dialog as a session does. See Key management.
- Mosh and Eternal Terminal sessions, and Telnet hosts. A Mosh or Eternal Terminal session signs in through its own client, not through ZestSSH’s SSH sign-in. A workflow you run yourself on a Mosh or Eternal Terminal host signs in over SSH, so it does show the dialog.
A workflow you run yourself is different from an automation: it shows the dialog, and its step’s time limit starts only once the sign-in is done.
Security design
Section titled “Security design”- Only
https://links are offered. - ZestSSH never opens a link by itself. Nothing opens until you choose Open link.
- A link with a user name before the host is refused.
- The dialog marks the message as the server’s, not ZestSSH’s, and names the web host the link goes to on its own line. Check that host before you open the link.
- The message is cleaned before it is shown: terminal colors and other control codes, direction overrides and invisible characters are removed.
- In recording mode, the user and host line and the host after The link goes to are masked. In the message itself, what looks like an address is masked:
user@host, IP addresses, host names with two or more dots (such asweb-01.example.com), local names (such asnas.local), and your saved host names and addresses. The rest, such as the path of the link, is still shown.
Troubleshooting
Section titled “Troubleshooting”The dialog did not appear
Section titled “The dialog did not appear”- Check that the server’s link starts with
https://. Anhttp://link is never offered. - If the app is locked on a phone or tablet, unlock it: the dialog waits for that.
- Jump hosts, Test full connection, serial console sessions, Server Monitor and automations that run by themselves never show the dialog.
The link does not open
Section titled “The link does not open”Choose Copy link and paste the link into a browser, on this device or another one.
Sign-in timed out
Section titled “Sign-in timed out”The server gets up to 5 minutes once its message arrives. Connect again to start a new sign-in. The connection log shows whether the message and its link arrived: see Reading connection logs.
Q: Does ZestSSH open the link for me? A: No. It opens only when you choose Open link.
Q: Can I approve on another device? A: Yes. Choose Copy link, open it on the other device, and approve there. The session opens in ZestSSH once the server lets you in.
Q: Can a scheduled task sign in to a host in Tailscale SSH check mode? A: Not while the host waits for you to open a link. Nobody is there to open it, so the server gets the usual 15 seconds and the sign-in times out. Use a host that does not ask for a check.