https://github.com/yurenchen000/xdg-open-ssh
xdg-open 'ssh://...' url in browser
https://github.com/yurenchen000/xdg-open-ssh
ssh ssh-client ssh-connection ssh-url
Last synced: 10 months ago
JSON representation
xdg-open 'ssh://...' url in browser
- Host: GitHub
- URL: https://github.com/yurenchen000/xdg-open-ssh
- Owner: yurenchen000
- Created: 2019-06-26T09:33:58.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-06-22T16:10:11.000Z (11 months ago)
- Last Synced: 2025-06-22T17:23:59.153Z (11 months ago)
- Topics: ssh, ssh-client, ssh-connection, ssh-url
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
xdg-open web-links like `ssh://user:pass@host:port` on linux chrome/firefox
> inspired by this post
> https://soultrace.net/open-ssh-urls-in-chrome-and-firefox/
url scheme:
ssh://[user[:pass]@]host[:port]
NOTICE: this simple script tool maybe has **command injection vulnerability**, only open links you trusted.
## linux
xdg-open-ssh:
use `gnome-terminal` or `terminator` open the ssh url,
if `pass` occur, use `sshpass` input password.
if `pass` err, failback to user input password.
install:
install.sh
## windows
`win/ssh_url_handle.bat` for win `ssh://` url handle.
install:
ssh_url_handle.bat --install
usage:
edit `ssh_url_handle.bat` to add custom terminal application path.
sercureCRT and putty as demo in script.
```bat
REM set "secureCRT=N:\d_soft_80\Program Files\SecureCRT\SecureCRT.exe"
set "putty=N:\d_soft_80\Program\putty\PUTTY.EXE"
```
## Other Bash Script
[](https://github.com/yurenchen000/yurenchen000/blob/main/repos.md#bash-scripts)