Answer the question
In order to leave comments, you need to log in
How to connect to Localhost via phpseclib?
Good afternoon
I am writing a site in PHP, I needed to connect from PHP to SSH and execute the command, but the connection is not performed:
include "phpseclib/Net/SSH2.php";
$ssh = new SSH2('localhost', 22);
Answer the question
In order to leave comments, you need to log in
It is necessary to read the PHP log - it will be written there because of what the error occurs. I can assume that there is no module for SSH.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question