Your best friend for file transfer.

Fetch application logoFetch

SFTP Connection could not be opened... (12 posts)

  • Started 4 years ago by mflight
  • Latest reply 7 months ago from Jim Matthews
  • mflight Member

    I keep on getting this message when trying to connect:

    “SFTP connection to 70.42.33.4 could not be opened because the connection to the SFTP server could not be established or was lost.

    Try again, or contact the server administrator to verify that you can have the correct hostname, username, password, and authentication method, and that the server is running.”

    I'm putting in all the correct information according to the server administrator, so I really have no idea what's going wrong.

    Any insight?

    Posted 4 years ago #

  • Jim Matthews Administrator

    Hi,

    When I try to connect to 70.42.33.4 I get a connection refused error. It could be that the ssh server (which handles SFTP) has crashed or been turned off. I would talk to the system administrator again.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 4 years ago #

  • Deborah Member

    I repeatedly get this same error message, and system admin for the SFTP tells me it's on my end. Any suggestions for what to check? I am on Mac Powerbook G4, OS 10.4.11.

    Thanks.

    Posted 4 years ago #

  • Scott McGuire Administrator

    Hi Deborah,

    Each SFTP server has an "SSH host key" that enables secure transfers. When you connect to an SFTP server, Mac OS X stores that server's key for future use. If the server's key changes and no longer matches the one stored on your Macintosh, this could indicate a security problem. Some programs ignore the error; Fetch instead refuses to make the connection.

    So, one possibility is that your server's key may have changed, and that is the reason Fetch won't connect. You should try clearing your Mac's store of SSH keys, so that you can get a fresh key from the server.

    Please do the following to clear your SSH keys:

    * In Fetch, choose Fetch Help from the Help menu.
    * In the help window, search for "known hosts".
    * Double-click on the "RSA host key differs warning" help topic (it should be the one at the top of the list).
    * A help topic opens in the help window.
    * Scroll down to the "Delete the known_hosts file for me" link.
    * Click the link, and follow the instructions.

    Once that's done, try connecting to your server using SFTP again. If you're warned that "the authenticity of the host can't be established" (you may or may not be), that is normal and you should continue.

    Please let us know if this fixes the problem or not.

    Thanks,

    Scott McGuire
    Fetch Softworks

    Posted 4 years ago #

  • Deborah Member

    Hello Scott,

    Worked like a charm! Thanks so much. I'll pass the info onto my client, too, so they can troubleshoot that end. (They keep pushing Cyberduck, which is loaded with trouble, so I hope this will encourage them to support Fetch, which my colleagues and I agree is the only way to go.) Thanks again!

    Deborah

    Posted 4 years ago #

  • Scott McGuire Administrator

    Hi Deborah,

    You're welcome, we're glad to hear the problem is fixed.

    And thanks for your support!

    Best,

    Scott McGuire
    Fetch Softworks

    Edited 4 years ago #

  • Bob Member

    Fetch still has the problem I reported close to a year ago. I have a ubuntu server at work I connect to. I can successfully ssh/sftp from terminal anytime. When I use fetch with sftp I have to connect/reconnect MANY times until I get a connection. The ubuntu system has been upgraded to the latest version, I think this is a mac or fetch issue.

    Bob Sica

    Posted 4 years ago #

  • Jim Matthews Administrator

    Hi Bob,

    We'd like to help figure out what's going on with your ubuntu server. After trying to connect could you send the contents of the Fetch Transcript window to bugs@fetchsoftworks.com ?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 4 years ago #

  • Susan Member

    Fetch 5.7.3 (5H683) Intel (Web Store) running on Mac OS X 10.8.4 (12E55) Intel English
    StuffIt Engine 0x820, StuffIt SDK Version 10.1.1b1
    Partial serial FETCHEX001-NJSM-C6UM T
    Connecting to subrown@itcdland.csumb.edu port 22 (9/5/13 9:09 PM)
    SSH2_FXP_INIT 3
    SFTP connection to “itcdland.csumb.edu” could not be opened because the connection to the SFTP server could not be established or was lost. (Try again, or contact the server administrator to verify that you have the correct hostname, username, password, and authentication method, and that the server is running.
    Server responded: “ssh_exchange_identification: Connection closed by remote host

    ”)
    Connecting to subrown@itcdland.csumb.edu port 22 (9/5/13 9:09 PM)
    SSH2_FXP_INIT 3
    SFTP connection to “itcdland.csumb.edu” could not be opened because the connection to the SFTP server could not be established or was lost. (Try again, or contact the server administrator to verify that you have the correct hostname, username, password, and authentication method, and that the server is running.
    Server responded: “ssh_exchange_identification: Connection closed by remote host

    ”)
    Update check skipped at 9/5/13 9:10 PM (next check after 9/13/13 1:20 PM)
    Connecting to subrown@itcdland.csumb.edu port 22 (9/5/13 9:15 PM)
    SSH2_FXP_INIT 3
    SFTP connection to “itcdland.csumb.edu” could not be opened because the connection to the SFTP server could not be established or was lost. (Try again, or contact the server administrator to verify that you have the correct hostname, username, password, and authentication method, and that the server is running.
    Server responded: “ssh_exchange_identification: Connection closed by remote host

    ”)

    Posted 7 months ago #

  • Jim Matthews Administrator

    Hi Susan,

    Could you try the following?

    * Choose Utilities from the Go menu in the Finder
    * Open the Terminal application
    * Type the following:

    ssh -v subrown@itcdland.csumb.edu

    and then hit Return
    * Answer any questions and enter your password if prompted

    Are you able to login? If not, could you post the output you see in Terminal?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 7 months ago #

  • Susan Member

    Unable to log in.
    Terminal bash:

    Last login: Thu Sep 5 21:07:46 on console
    Susans-MacBook-Air:~ susanbrown$ ssh-v subrown@itcdland.csumb.edu
    -bash: ssh-v: command not found
    Susans-MacBook-Air:~ susanbrown$ ssh -v subrown@itcdland.csumb.edu
    OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012
    debug1: Reading configuration data /etc/ssh_config
    debug1: /etc/ssh_config line 20: Applying options for *
    debug1: /etc/ssh_config line 53: Applying options for *
    debug1: Connecting to itcdland.csumb.edu [198.189.249.134] port 22.
    debug1: Connection established.
    debug1: identity file /Users/susanbrown/.ssh/id_rsa type -1
    debug1: identity file /Users/susanbrown/.ssh/id_rsa-cert type -1
    debug1: identity file /Users/susanbrown/.ssh/id_dsa type -1
    debug1: identity file /Users/susanbrown/.ssh/id_dsa-cert type -1
    ssh_exchange_identification: Connection closed by remote host
    Susans-MacBook-Air:~ susanbrown$

    Posted 7 months ago #

  • Jim Matthews Administrator

    Thanks for trying that. The next thing I'd try is deleting your SSH known_hosts file. To do that:

    1) In the Finder, choose Go to Folder… from the Go menu
    2) Enter:

    ~/.ssh

    and click Go
    3) Drag known_hosts to the trash

    If that doesn't let you login I suspect there's a server problem, and I would recommend contacting the server administrator.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 7 months ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.