Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $connection = ssh2_connect('мой ip', 22);
- ssh2_auth_password($connection, 'логин', 'пароль');
- $stream=ssh2_exec($connection, 'ifconfig' );
- stream_set_blocking($stream, true);
- echo stream_get_contents($stream);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement