I’m trying to create a little static html start page with ssh links to all the servers I manage. I’m trying to create HTML links that will emulate the following:
ssh -t user@example.com “cd /home/user/; vim ruby.rb”
This works:
<a href=”ssh://user@example.com”>shell</a>
But I’m not sure how to pass the extra commands (to cd and edit the file via vim) to the href link.
Any suggestions?
I would create an alternative like ruby_ssh://, then create a custom URL handler in your browser, which varies by browser.