Repository navigation
Conversation
|
Flagging this to include/consider in the key/auth rewrite of #387, slated for after the modernization effort to, e.g., drop Python 2 and older 3.x. Thanks for the report, @cheng0214! |
|
Tested and works for a server with only aes128-gcm and aes256-gcm support, using fabric and applying patched paramiko with this PR. |
|
Do you have an ETA of the lading of this patch into stable paramiko releases? |
|
Any chance this will be merged for the 3.4.0 release as Paramiko is the only reason I still have to have non-AEAD ciphers enabled on hundreds of devices? |
|
Also keen to use this when merged! |
|
Any view on whether this will make it into 3.4.0? |
|
Is this pull request likely to make it into a Paramiko release any time soon? |
|
Unfortunately uncertain, @cmason3. bitprophet has needed to turn his focus elsewhere for a while now, and I don't know when he's going to be able to return attention to paramiko for other than critical security updates, like the Terrapin fix in 3.4. |
Paramiko cipher code update. paramiko#2157 is to address the same in Paramiko and the upstream is yet to merge this. Patch is here https://github.com/paramiko/paramiko/commit/09db56a27633ae4d0c796fac778b3d1a9be864bd.patch/
|
+1 would really appreciate having aes256-gcm support. I just spent hours debugging the It would be great to have an actual error message that says that explicitly: "Paramiko does not support aes256-gcm cypher chosen by handshake/server" or something to that effect. |
|
Is there anything the community can do to assist in getting AES/GCM support merged into Paramiko or it is dependent on a single person finding some time to review it and agree for it to be merged (whilst also deciding whether this is more important than the other issues and pull requests that are pending)? |
|
Any ETA on this? I would like to use it. |
|
Thanks for the code from this PR I think that what the "community" can do is:
In this way, if the PR is is good shape, it should be much easier to merge. I did some initial testing with the code from this branch against a local OpenSSH and it looks good The idea is to try to tranfer a larger file so that you can have all kind of paddings and IVs... in the case there are any errors in the code. #
# A simple test to upload a file using paramiko, using ETM and GCM.
#
import os
from getpass import getpass
import paramiko
transport = paramiko.Transport(('localhost', 22))
options = transport.get_security_options()
options.digests = ('[email protected]',)
options.ciphers = ('[email protected]',)
# Do the connection.
transport.start_client()
print('Connected to {}'.format(transport.get_remote_server_key()))
print('Version local:{} remote:{}'.format(
transport.local_version, transport.remote_version))
print('MAC local:{} remote:{}'.format(
transport.local_mac, transport.remote_mac))
print('Ciphers local:{} remote:{}'.format(
transport.local_cipher, transport.remote_cipher))
print('Compression local:{} remote:{}'.format(
transport.local_compression, transport.remote_compression))
# Do the authentication.
user = os.environ.get('USER', 'NO-USER-FOUND')
password = getpass(f'Pass for {user}: ')
transport.auth_password(user, password)
# Start the SFTP session.
sftp_client = transport.open_sftp_client()
print(sftp_client.listdir('/tmp'))
sftp_client.put('LICENSE', '/tmp/LICENSE')
sftp_client.close()
transport.close()the result |
|
I don't suppose there is any progress on merging AES GCM support into Paramiko? I can see Juniper have now forked Paramiko and have applied the patch themselves (https://github.com/Juniper/paramiko), so it is actively being used if that helps? However, this is really bad as they don't seem to be keeping their fork up to date with this one, so people are potentially running code that has unpatched security issues. |
|
I expect that there are other projects that forked paramiko. I am using paramiko just to support testing our infrastructure ... so I ended up with a fork. |
|
It looks like the patch is out of sync with the master :( |
|
I am not sure if this was the correct way of doing this in Git, but I have created PR #2444 which duplicates this PR, but will now cleanly merge on top of main to add support for AES256/GCM and AES128/GCM. |
|
Rolling this into #2444 - and don't worry, if we end up merging this, will give due credit 🙏🏻 |
Add aes128-gcm and aes256-gcm support for paramiko.
solve this #1394