How can I tunnel a ssh command over an http url [closed]

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have to execute bash scripts over an http url. For example I have two serverS in the same network:
- From server A i want to send this http url:
10.10.10.5/start.sh - And in Server B is a the script "start.sh" located and should be executed. Also php sctipts should be executed in the same way.
How can I do that? Which webserver should I use?
shell-script webserver http tunneling
closed as unclear what you're asking by Tomasz, Jeff Schaller, jayhendren, mdpc, Romeo Ninov Jan 17 at 7:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
2
down vote
favorite
I have to execute bash scripts over an http url. For example I have two serverS in the same network:
- From server A i want to send this http url:
10.10.10.5/start.sh - And in Server B is a the script "start.sh" located and should be executed. Also php sctipts should be executed in the same way.
How can I do that? Which webserver should I use?
shell-script webserver http tunneling
closed as unclear what you're asking by Tomasz, Jeff Schaller, jayhendren, mdpc, Romeo Ninov Jan 17 at 7:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
If you do require a tunnel however, then you could do this from server A:ssh user@server_B.com -L 80:10.10.10.5:80then run this from server A:curl http://localhost/start.sh
â RobotJohnny
Jan 15 at 16:18
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have to execute bash scripts over an http url. For example I have two serverS in the same network:
- From server A i want to send this http url:
10.10.10.5/start.sh - And in Server B is a the script "start.sh" located and should be executed. Also php sctipts should be executed in the same way.
How can I do that? Which webserver should I use?
shell-script webserver http tunneling
I have to execute bash scripts over an http url. For example I have two serverS in the same network:
- From server A i want to send this http url:
10.10.10.5/start.sh - And in Server B is a the script "start.sh" located and should be executed. Also php sctipts should be executed in the same way.
How can I do that? Which webserver should I use?
shell-script webserver http tunneling
edited Jan 15 at 8:24
yeti
2,36611223
2,36611223
asked Jan 15 at 7:52
M Loe
111
111
closed as unclear what you're asking by Tomasz, Jeff Schaller, jayhendren, mdpc, Romeo Ninov Jan 17 at 7:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Tomasz, Jeff Schaller, jayhendren, mdpc, Romeo Ninov Jan 17 at 7:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
If you do require a tunnel however, then you could do this from server A:ssh user@server_B.com -L 80:10.10.10.5:80then run this from server A:curl http://localhost/start.sh
â RobotJohnny
Jan 15 at 16:18
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50
add a comment |Â
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
If you do require a tunnel however, then you could do this from server A:ssh user@server_B.com -L 80:10.10.10.5:80then run this from server A:curl http://localhost/start.sh
â RobotJohnny
Jan 15 at 16:18
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
If you do require a tunnel however, then you could do this from server A:
ssh user@server_B.com -L 80:10.10.10.5:80 then run this from server A: curl http://localhost/start.shâ RobotJohnny
Jan 15 at 16:18
If you do require a tunnel however, then you could do this from server A:
ssh user@server_B.com -L 80:10.10.10.5:80 then run this from server A: curl http://localhost/start.shâ RobotJohnny
Jan 15 at 16:18
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Are you trying to visit 10.10.10.5/start.sh via a browser on server A? I assume both servers are on the same network and can route to each other? If the answer to both is yes, then I'm not sure a tunnel is required; you could just call the url from server A directly.
â RobotJohnny
Jan 15 at 16:14
If you do require a tunnel however, then you could do this from server A:
ssh user@server_B.com -L 80:10.10.10.5:80then run this from server A:curl http://localhost/start.shâ RobotJohnny
Jan 15 at 16:18
So.. serverB is hosting the script, but you want to execute it remotely via serverA? Or what? Your question is very unclear.
â tjt263
Jan 16 at 19:50