Terminal URL Scheme Support

Investigates how macOS and Windows handle terminal URL schemes so you can launch SSH sessions directly from hyperlinks.

Mar 21, 2024 · 1 min read · 116 Words · -Views -Comments · Programming
Developer Tools Windows Mac 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Both macOS and Windows ship with terminal apps. If they support URL schemes, you can start an SSH session from a hyperlink. Here’s what works today.

URL Schemes

macOS

ssh://<username>@<host>:<port>

Click to test

By default this opens Terminal, but you can remap it to iTerm2 or another terminal app via settings.

Windows

No built-in support. You can configure PuTTY or other tools to handle ssh:// (e.g., https://gist.github.com/sbiffi/11256316).

Windows does have other built-in schemes, such as launching the Store to a product page: test link. Also note that Windows 11 ships with Windows Terminal preinstalled; older versions require manual installation.

Final Thoughts

It’d be great if Windows added native terminal URL handling—macOS has a clear edge here.

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover