0

I have confirmed that I can login via Telnet

$ telnet ftp.domain.com 990 
Trying xx.xxx.xxx.xx... 
Connected to ftp.domain.com. Escape character is '^]'.

I am getting the following error when trying to connect with sftp

curl: (2) Failure establishing ssh session

Doing the following

curl -u user sftp://ftp.domain.com:990/ToFile/file.csv

I enter the password then it waits and I get the error

I checked to see if fips was disabled

cat /proc/sys/crypto/fips_enabled
0

I also tried the following:

$ sftp -P 990 user@ftp.domain.com
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer

I then tried the following:

$ sftp -o PreferredAuthentications=password -o PubkeyAuthentication=no -P 990 user@ftp.domain.com
ssh_exchange_identification: Connection closed by remote host 
Couldn't read packet: Connection reset by peer

closed as unclear what you're asking by roaima, user88036, Thomas, RalfFriedl, Tim Kennedy Oct 1 '18 at 1:24

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • are you sure it's really sftp you're doing and not simply... ftp? – freedge Dec 19 '15 at 18:03
  • I have confirmed I can connect from my local so it appears to be something with the Amazon server – brentwpeterson Dec 20 '15 at 21:03
1

Your service is probably using pure ftp, but connecting to something you don't know is usually receipt for bad question. Can you connect using ftp:

ftp ftp.domain.com 990
curl -u user ftp://ftp.domain.com:990/ToFile/file.csv

SFTP is usually running on port 22 over ssh. Are you able to connect to the server over ssh? What is in your sshd_config? Your errors are saying that there is not running ssh on the tried port.

  • I have confirmed I can connect from my local so it is my server (AWS AMI) – brentwpeterson Dec 20 '15 at 21:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.