Fait une commande de sioux pour creuser un tunnel ssh direct via un tunnel ssh reverse pour arriver sur le NodeMCU au MsL ;-)

This commit is contained in:
Christian Zufferey
2019-10-28 20:55:05 +01:00
parent d05e8fae79
commit 9a625964db
7 changed files with 12 additions and 48 deletions

View File

@@ -1,23 +0,0 @@
-- programme pour faire un test depuis de le webide
-- source: https://nodemcu.readthedocs.io/en/master/modules/ds18b20/
function a1()
print("\n a1.lua zf190601.1627 \n")
end
a1()
local ow_pin = 3
ds18b20.setup(ow_pin)
print("toto182538")
-- read all sensors and print all measurement results
ds18b20.read(
function(ind,rom,res,temp,tdec,par)
print(ind,string.format("%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",string.match(rom,"(%d+):(%d+):(%d+):(%d+):(%d+):(%d+):(%d+):(%d+)")),res,temp,tdec,par)
end,{})
print("tutu152603")

View File

@@ -1 +0,0 @@
-- programme pour faire un test depuis de le webide

View File

@@ -1,3 +0,0 @@
-- programme pour faire un test depuis de le webide
node.restart()

View File

@@ -1,5 +0,0 @@
--Redémarre le NodeMCU
print("\n restart.lua zf181120.002 \n")
node.restart()

View File

@@ -1,6 +0,0 @@
-- Scripts pour renommer boot2z.lua quand cela marche
print("\n start.lua zf190917.0017\n")
--file.remove("boot2.lua")
file.rename("boot2z.lua","boot2.lua")

View File

@@ -1,6 +0,0 @@
-- Scripts pour renommer boot2.lua quand cela plante
print("\n stop.lua zf190917.0017\n")
--file.remove("boot2z.lua")
file.rename("boot2.lua","boot2z.lua")

View File

@@ -56,10 +56,18 @@ cat("boot2.lua")
# création des tunnels ssh
ssh -L 20221:localhost:20221 ubuntu@www.zuzutest.ml
sudo ssh -L 23:192.168.1.111:23 ubuntu@localhost -p 20221
export zIP="127.0.0.1"
telnet -rN $zIP
ATTENTION: dans un premier terminal !
ssh -t -L 2323:localhost:2323 ubuntu@www.zuzutest.ml ssh -N -L 2323:192.168.1.111:23 ubuntu@localhost -p 20221
ATTENTION: dans un deuxième terminal !
export zIP="localhost"
export zport="2323"
telnet -rN $zIP $zport
~.
node.restart()
=node.heap()
.