无法打开“;ssh://192.168.1.120";在浏览器中使用php脚本


Not able to open "ssh://192.168.1.120" in browser using php script

mozilla有一个firessh插件来支持ssh客户端服务。我们必须输入url,例如"ssh://192.168.1.120"在浏览器中打开firessh服务。但我需要在浏览器中通过点击html按钮的php脚本打开该url。我的php脚本可以打开‘Locationhttp://192.168.1.120"。但是它打不开ssh://192.168.1.120在浏览器中通过php脚本(单击html按钮时)

首先确保Firefox正确处理SSH://请求。

然后从PHP脚本返回以下HTML页面:

<?php 
    // Do some PHP stuff here
?>
<html>
    <head>
       <script>
          window.location.href="ssh://192.168.1.120";</script>
       </head>
    <body>
    </body>
</html>

页面加载后,应立即将您重定向到ssh插件。

相关文章: