Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

ssh tunnel with php script not working?

$
0
0

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.


Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images