[英]Using SSH in Google Chrome Extension
I want to write an Extension for the google chrome browser which reads some links from a website and copy these links into a file. 我想为Google chrome浏览器编写一个扩展程序,该扩展程序从网站读取一些链接并将这些链接复制到文件中。 I want to send this file via ssh to another computer in my local network.
我想通过ssh将此文件发送到本地网络中的另一台计算机。
How can I setup and use a ssh connection in my chrome extension? 如何在Chrome扩展程序中设置和使用ssh连接?
Assuming you mean scp, not ssh, here are your options: 假设您的意思是scp,而不是ssh,则可以选择以下几种:
chrome.sockets
. chrome.sockets
。 Implement SSH in JavaScript. The Chrome-App-based solutions raise a separate question of how to get the web content. 基于Chrome-App的解决方案提出了有关如何获取网络内容的单独问题。 You might be able to use Chrome Apps webview.
您可能可以使用Chrome Apps Webview。 Or you can message the content between the app and a Chrome Extension.
或者,您可以在应用程序和Chrome扩展程序之间发送内容消息。
There are probably other approaches as well. 可能还有其他方法。 But you get the idea: you have a lot of coding ahead of you.
但是您有个主意:您前面有很多编码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.