I am trying to execute an SSH command to a device (firewall). Command is executed when the length is short. When the length is about 1000 characters, command is not being executed.
When I execute the command via putty, that is working as well.
After reading few solutions, I tried to set timeout to 5 seconds. Still, no help.
In the device logs, I can see SSH login and logout. But no activity.
I am using phpseclib ssh version 2.0
$ssh = new SSH2(ip_address);
$ssh->login($user, $password);
$ssh->write($command);
$ssh->setTimeout(5);
$ssh->read()