I've tried to SSH into a domain, and I could do that using laravel SSH. Now I'm trying to SSH into my own machine using laravel SSH.
Here is what I'm trying to do,
$ip_address = 'ip adress';
$port = ''; //
$ftp_useame = 'swdf';
$ftp_password = 'sdfsc';
Config::set('remote.coections.production.host', $ip_address);
Config::set('remote.coections.production.port', $port);
Config::set('remote.coections.production.useame', $ftp_useame);
Config::set('remote.coections.production.password', $ftp_password);
SSH::run([
'cd Projects/test
touch test.txt',], function ($line) {
$decoded_txt = base64_decode($line);
});
retu 2;
I've put 22 as port, 8000 as port and even removed config setting for port. These three options didn't work. Any one have idea why its working for domains and not for my machine. I've someone else machine too. It didn't work either. The machine was active all the time.
The error it is throwing is,
Caot coect to ip:22. Error 110. Coection timed out
