Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html ssh terminal

#After searching i find this result and verified  

#You need to create a new profile and enable SSH URL handler in the browser
#In the schemes handlled choose ssh

#So here we will use some semple below code:

<html>
<body>
<a href="ssh://vagrant@vm/ls -alh">ls -alh</a>
</body>
</html>

#And below command in my iTerm SSH profile

/usr/bin/ssh $$USER$$@$$HOST$$  $(echo $$PATH$$ | tr -d '/')

#Of course you want to run a python script or something and pass it these values and let it do such things for additional functionalities. 
#But this shows how you could achieve such a setup
 
PREVIOUS NEXT
Tagged: #html #ssh #terminal
ADD COMMENT
Topic
Name
1+6 =