Comments (3)
@nmenag port must be a number between 0..65535, not a string. http://erlang.org/doc/man/inet.html#type-port_number
from sftp_client.
@wkirschbaum yes I tried that, but now it's returning this error:
Erlang SSH :client 4.10.2 (OpenSSL 1.1.1f 31 Mar 2020).
Server: 'SSH-2.0-WeOnlyDo-wodFTPD 3.3.0.424'
Disconnects with code = 3 [RFC4253 11.1]: Key exchange failed
State = {kexinit,client,init}
Module = ssh_transport, Line = 380.
Details:
Kexinit failed in client: error:{badmatch,{false,"kex"}}
** (MatchError) no match of right hand side value: {:error, %SFTPClient.ConnError{message: "Key exchange failed"}}
it is not working ok on Linux. I have no idea what configurations I need for works well on Linux. in Mac works.
from sftp_client.
Hello! Thank you for reporting this issue.
Which Erlang/OTP version are you using on your Linux system? Probably OTP 23?
I think it might be an issue due to a change in Erlang's ssh module in the recent OTP (23) version.
However, there is an open issue in the SSHKit library which seems to be very similar. It points out that there have been a couple changes in OTP 23 - some key exchange algorithms in OTP 23 have been deprecated, for instance. There are also some hints on how to deal with the issue.
If this still does not help, you probably want to downgrade to OTP 22 until a proper fix is implemented.
from sftp_client.
Related Issues (20)
- Implement :ssh_sftp.write_file_info/3
- SFTP with private rsa key HOT 4
- Protocol Collectable not implemented for %SFTPClient.Stream HOT 8
- ip bindings HOT 1
- Does not work with OTP 23
- Support more/all options of :ssh_sftp.start_channel() HOT 1
- write_file @doc, @spec and implementation do not match HOT 2
- list_dir() hangs if folder is empty HOT 4
- Upgrading to OTP 24 - returning "Key exchange failed" error on connecting. HOT 4
- Migrate from Travis CI to Github Actions
- How to make pub/priv key work with this client library HOT 1
- Cannot install inside of Livebook Desktop
- Dialyzer errors on Elixir 1.16
- Is it possible to stream_file by line? HOT 1
- read_file crashes on OTP 27 HOT 3
- add :sftp_client to "application" in the mix.exs file ? HOT 3
- "module SFTPClient is not available" (related to the issue: add :sftp_client to "application" in the mix.exs file ?) HOT 6
- stream_file bangs on SFTPClient.OperationError HOT 2
- Deprecate stream_file/1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sftp_client.