Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurenchen000/xdg-open-ssh
xdg-open 'ssh://...' url in browser
https://github.com/yurenchen000/xdg-open-ssh
Last synced: 2 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T18:59:23.000Z (over 3 years ago)
- Last Synced: 2024-10-18T16:31:06.157Z (3 months ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- 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"
```