Skip to content

yurenchen000/xdg-open-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

REM set "secureCRT=N:\d_soft_80\Program Files\SecureCRT\SecureCRT.exe"
set "putty=N:\d_soft_80\Program\putty\PUTTY.EXE"

About

xdg-open 'ssh://...' url in browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published