Recently, SFTP upload and download should be configured in the project. After the environment is configured, the connection will report an error.
The error information is as follows:
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner
Solution 1:
Set banner_ Timeout property value
You can change the transport.py under the paramiko Library in the site packages source file. The transport code is as follows:
class Transport(threading.Thread, ClosingContextManager):
self.banner_timeout = 15
# how long (seconds) to wait for the handshake to finish after SSH
15 can be changed to 30
Solution 2:
Pay attention to check your host, port, username, password and other information, as well as upload or download directory path!
Read More:
- [Solved] SSH Startup Error: unable to load host key /etc/ssh/ssh_host_ed25519_key bad permissions
- [Solved] SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- Kali starts SSH service error [How to Fix]
- [Solved] SSH connect Error: “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED“
- Enter passphrase for key ‘/c/Users/**/.ssh/id_rsa‘ [How to Solve]
- [Solved] SSH connect error: Host key validation failed
- [Solved] SSH Error: ECDSA host key for xxx has changed and you have requested strict checking.
- [Solved] Linux SSH Login Terminal Error: shell request failed on channel 0
- [SSH error] ssh_exchange_identification: read: Connection reset by peer
- [Solved] Linux error: SSH_exchange_identification: read: Connection reset by peer
- Using common file upload to upload files in SSH project
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- [Solved] SSH Failed to Login Ubuntu Error: Socket error Event: 32 Error: 10053. Connection closing…Socket close.
- How to Solve No approve protocol error when running kettle on Linux
- stream copy error: reading from a closed fifo [How to Solve]
- net::ERR_HTTP2_PROTOCOL_ERROR 200 [How to Solve]
- [Solved] Jenkins+Ant Error: Error reading project file xxxxx
- [Solved] Win10 and Linux address reading format is different (CV2. Error: opencv (4.2.0)/Io/opencv…)
- [Solved] websocket: the client is not using the websocket protocol: ‘upgrade’ token not found in ‘Connection’ head
- Disk Extended Error: WARNING: Re-reading the partition table failed with error 16: Device or resource busy.