Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #-----[ OPEN ]------------------------------------------
- #
- Net/SSH2.php
- #
- #-----[ FIND ]------------------------------------------
- #
- $this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $timeout);
- #
- #-----[ REPLACE WITH]-----------------------------------
- #
- $connection = ssh2_connect('shell.example.com', 22);
- ssh2_auth_password($connection, 'username', 'password');
- $this->fsock = ssh2_tunnel($connection, 'otherwebsite.com', 22);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement