Git Product home page Git Product logo

Comments (3)

wkirschbaum avatar wkirschbaum commented on August 20, 2024

@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.

nmenag avatar nmenag commented on August 20, 2024

@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.

tlux avatar tlux commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.