I want to create a ssh tunnel with php script but it is not working:
<?php
exec ('sshpass -p my_pass ssh -L 9001:remote_server:80 user@shell.example.net -N');
echo '<b> Done </b>';
?>
just print the Done.
I want to create a ssh tunnel with php script but it is not working:
<?php
exec ('sshpass -p my_pass ssh -L 9001:remote_server:80 user@shell.example.net -N');
echo '<b> Done </b>';
?>
just print the Done.