[Twisted-Python] Limiting cipher options for SSH/SFTP
![](https://secure.gravatar.com/avatar/0734f21345c8dff72bd25969bcb9e362.jpg?s=120&d=mm&r=g)
I need to limit the ciphers offered for an ssh/sftp connection. class ESFTPServerForUnixConchUser(SFTPServerForUnixConchUser): """Main local proxy class for file transfer access. Many methods are overriden to support file encryption and encrypted file name mappings. """ def __init__(self, avatar): """Initialize class with avatar representing user information""" SFTPServerForUnixConchUser.__init__(self, avatar) I'm unclear as to how to restrict which ciphers to use at this level. --Ray -- Ray Cote, President Appropriate Solutions, Inc. We Build Software www.AppropriateSolutions.com 603.924.6079
![](https://secure.gravatar.com/avatar/b210d1846bf3d93cee9165c1ad9d522d.jpg?s=120&d=mm&r=g)
Hi I have not used it myself but this seems what you're looking for: http://twistedmatrix.com/documents/13.0.0/api/twisted.conch.ssh.transport.SS... I guess you need to subclass SSHTransport and give it the list of ciphers you want. -- Nacim. 2013/10/29 Ray Cote <rgacote@appropriatesolutions.com>
![](https://secure.gravatar.com/avatar/1846c8040fcf70e9b55bb7bfcdb78bc4.jpg?s=120&d=mm&r=g)
Hi Ray! This seems like a clear failure of the documentation. Please file a ticket so that it can be alleviated at some point :) cheers lvh
![](https://secure.gravatar.com/avatar/0734f21345c8dff72bd25969bcb9e362.jpg?s=120&d=mm&r=g)
Thanks Nacim: I had found the supported ciphers. However, I'm unclear as to how to present a subclassed SSHTransport to the SFTPServer. (And, once I understand how I will issue a documentation bug with details...) --Ray ----- Original Message -----
Hi
I have not used it myself but this seems what you're looking for: http://twistedmatrix.com/documents/13.0.0/api/twisted.conch.ssh.transport.SS...
I guess you need to subclass SSHTransport and give it the list of ciphers you want.
--
Nacim.
2013/10/29 Ray Cote < rgacote@appropriatesolutions.com >
I need to limit the ciphers offered for an ssh/sftp connection.
class ESFTPServerForUnixConchUser(SFTPServerForUnixConchUser):
"""Main local proxy class for file transfer access.
-- Ray Cote, President Appropriate Solutions, Inc. We Build Software www.AppropriateSolutions.com 603.924.6079
![](https://secure.gravatar.com/avatar/b210d1846bf3d93cee9165c1ad9d522d.jpg?s=120&d=mm&r=g)
Hi I have not used it myself but this seems what you're looking for: http://twistedmatrix.com/documents/13.0.0/api/twisted.conch.ssh.transport.SS... I guess you need to subclass SSHTransport and give it the list of ciphers you want. -- Nacim. 2013/10/29 Ray Cote <rgacote@appropriatesolutions.com>
![](https://secure.gravatar.com/avatar/1846c8040fcf70e9b55bb7bfcdb78bc4.jpg?s=120&d=mm&r=g)
Hi Ray! This seems like a clear failure of the documentation. Please file a ticket so that it can be alleviated at some point :) cheers lvh
![](https://secure.gravatar.com/avatar/0734f21345c8dff72bd25969bcb9e362.jpg?s=120&d=mm&r=g)
Thanks Nacim: I had found the supported ciphers. However, I'm unclear as to how to present a subclassed SSHTransport to the SFTPServer. (And, once I understand how I will issue a documentation bug with details...) --Ray ----- Original Message -----
Hi
I have not used it myself but this seems what you're looking for: http://twistedmatrix.com/documents/13.0.0/api/twisted.conch.ssh.transport.SS...
I guess you need to subclass SSHTransport and give it the list of ciphers you want.
--
Nacim.
2013/10/29 Ray Cote < rgacote@appropriatesolutions.com >
I need to limit the ciphers offered for an ssh/sftp connection.
class ESFTPServerForUnixConchUser(SFTPServerForUnixConchUser):
"""Main local proxy class for file transfer access.
-- Ray Cote, President Appropriate Solutions, Inc. We Build Software www.AppropriateSolutions.com 603.924.6079
participants (3)
-
Flint
-
Laurens Van Houtven
-
Ray Cote