When connecting to some devices, I'm getting this message:
Expected SSH_FXP_VERSION and the command does not execute.
I'm using php with phpseclib
.
When connecting to some devices, I'm getting this message:
Expected SSH_FXP_VERSION and the command does not execute.
I'm using php with phpseclib
.
This error can be caused by a number of reasons, including:
Non-standard SSH protocol deployment on the router;
phpseclib constants not set correctly (mostly in some changes in it);
Authentication packet receive error (network problem);
Try to calmly look at the library deployment, the block that returns the error is this:
$response = $this->_get_sftp_packet();
if ($this->packet_type != NET_SFTP_VERSION) {
user_error('Expected SSH_FXP_VERSION');
return false;
}
can be found at Net / SFTP.php