2

I'm connecting with phpsеclib like that:

<?php
include('Net/SSH2.php');

$ssh = new Net_SSH2('www.domain.tld');
if (!$ssh->login('username', 'password')) {
    exit('Login Failed');
}

echo $ssh->read('username@username:~$');
$ssh->write("some commands"); // here is the question
echo $ssh->read('username@username:~$');
?>

And I wаnt to check if my ssh still can tunnel traffic and get external ip.

By еxternal ip I mean the IP we will get after connection (sometimes it's different from IP tо which we connect).

closed as off-topic by peterh, womble Nov 4 '15 at 7:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – womble
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.