Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
```