Skip to content

paramiko.ssh_exception.SSHException: Incompatible ssh server (no acceptable ciphers) #1833

@ghostzero192

Description

@ghostzero192

hi i'm using paramiko 2.7.2 on windows 10 for connecting to a sftp site the following code has been working just fine (even as a service) and suddenly it just stopped working here is the error i'm getting

Traceback (most recent call last): File "C:\Users\Administrator\Documents\Pax\otra\par.py", line 14, in <module> transport.connect(None,username,password) File "C:\Program Files\Python37\lib\site-packages\paramiko\transport.py", line 1294, in connect self.start_client() File "C:\Program Files\Python37\lib\site-packages\paramiko\transport.py", line 663, in start_client raise e File "C:\Program Files\Python37\lib\site-packages\paramiko\transport.py", line 2086, in run self._handler_table[ptype](self, m) File "C:\Program Files\Python37\lib\site-packages\paramiko\transport.py", line 2201, in _negotiate_keys self._parse_kex_init(m) File "C:\Program Files\Python37\lib\site-packages\paramiko\transport.py", line 2418, in _parse_kex_init "Incompatible ssh server (no acceptable ciphers)" paramiko.ssh_exception.SSHException: Incompatible ssh server (no acceptable ciphers)

and here is the code:

import paramiko
from paramiko import SFTPClient
import os
import csv

host,port = "sftpaddress",22
transport = paramiko.Transport((host,port))

username,password = "username","pasword"
transport.connect(None,username,password)

sftp : SFTPClient = paramiko.SFTPClient.from_transport(transport)

ftpFiles = sftp.listdir('/')
print(len(ftpFiles))
if sftp: sftp.close()
if transport: transport.close()
also i'm able to connect using winscp client, no problem

i even added the 'arcfour' ones just to try and nothing
forgive my english and noobnes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions