1
我想创建一个有链接的网站,并且根据这些链接它将加载带有ssh连接到特定主机的腻子。 (这是要在内部使用,即6)Javascript将腻子加载到特定的ssh主机
到目前为止,我已经忽略主机
<script language="javascript">
function connection(host) {
oShell = new ActiveXObject("Wscript.Shell");
oShell.Run("putty.exe -ssh" + host + "22");
}
</script>
<a href="javascript:connection('@1.1.1.1')"> Connection 1 </a>
为什么不做更标准的事情,并使用'ssh:'协议处理程序? https://kb.op5.com/pages/viewpage.action?pageId=688361 – Brad 2014-10-10 15:41:57
我需要它通过腻子专门加载它 – CBR 2014-10-10 15:47:00
对,配置每个人的机器使用PuTTY作为'ssh:'的处理程序。 – Brad 2014-10-10 17:20:56