我正在编写一个bash脚本,通过运行sish ()的SSH连接到服务器。这实际上将创建一个端口转发在互联网上,如ngrok只使用SSH。以下是正常使用过程中发生的情况。命令:
ssh -i ./tun -o StrictHostKeyChecking=no -R 5900:localhost:5900 tun.domain.tld sleep 10
答复:
Starting SSH Forwarding service for tcp:5900. Forwarded connections can be accessed via the following methods:
TCP: tun.
我想创建一个运行在Google上的web服务器。而且,我应该能够通过浏览器访问它,而无需使用任何第三方服务或SSH。我安装了lamp服务器,并尝试使用socat进行端口转发,但由于某种原因,它无法工作。我也尝试了Iptables,但似乎它在内核级别上不受Google的支持。所以如果有人能告诉我如何正确地使用socat,那就太好了。
我已经在Google上安装了lamp服务器,我使用以下命令启动了它
!sudo service mysql start
!sudo service apache2 start
如果我使用curl通过colab本身访问它,它就会正常工作。
!curl http://l
我正在尝试学习大量的教程和要点,例如: https://gist.github.com/creotiv/d091515703672ec0bf1a6271336806f0 https://stackoverflow.com/questions/48459804/how-can-i-ssh-to-google-colaboratory-vm/53252985#53252985 当我运行这些步骤时,看起来一切都很顺利(我得到了root密码),但我确实看到了以下内容: invoke-rc.d: could not determine current runlevel
invoke-rc.d: pol