We just upgraded our Zend Servers from 5.6.16 to 7.2.6. On the old version, SSH2 functions were connecting to client SFTP servers using AES128-CTR. Now with the new version AES256-CBC is the highest we can get negotiated. I can't find anything anywhere on this but it seems like a problem.
Does anyone have any ideas?
Thank You.
SSH2 Not Allowing AES256-CTR
- zend_eyalt
- Posts: 285
- Joined: Thu Jan 22, 2009 3:16 pm
Re: SSH2 Not Allowing AES256-CTR
I do not think that the php version has anything to do with it, as using AES128-CTR even on php 5.6.7 failed for me.
Note that http://php.net/manual/en/function.ssh2-connect.php doesnot list AES128-CTR as supported, it does mention though aes128-cbc and thus the former fails and the latter works:
Note that http://php.net/manual/en/function.ssh2-connect.php doesnot list AES128-CTR as supported, it does mention though aes128-cbc and thus the former fails and the latter works:
Code: Select all
$crypt = 'AES128-CTR'; // fails
//$crypt = 'aes128-cbc'; // works
$methods = array(
'client_to_server' => array(
'crypt' => $crypt,
'comp' => 'none'),
'server_to_client' => array(
'crypt' => $crypt,
'comp' => 'none'));
$connection = ssh2_connect(SSH_HOST, 22, $methods);