Your best friend for file transfer.

Fetch application logoFetch

SSH on Fetch (9 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 10 years ago by bradmagic
  • Latest reply 10 years ago from Jim Matthews
  • bradmagic Member

    How exactly can I connect to a site on Fetch through an SSH Tunnel?

    I have a connection running through OS X's terminal.

    I'm having the hardest time connecting to my site due to the SSH. I'm hoping that Fetch does support this.

    -Brad

    Posted 10 years ago #

  • Jim Matthews Administrator

    You would type a command like this to Terminal:

    ssh -L2021:hostname:21 userid@hostname

    You'd replace "hostname" with the name of the server you want to connect to, and "userid" with the name of your account on the server. You'd be prompted to enter a password.

    Then you'd go to Fetch and fill in the New Connection window like this:

    Host: localhost:2021
    User ID: your userid
    Password: your password

    Also, make sure that "Use passive mode transfers (PASV)" is checked in the Firewall section of Fetch Preferences.

    Let me know if this doesn't work for you.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • bradmagic Member

    Aha, that did work! Thank you.

    This is slightly off topic: what would I write in an AppleScript that would insert the above text into the Terminal?

    This way I can open up the script and it will automatically begin the Terminal to what I need for my SSH connection.
    -Brad

    Posted 10 years ago #

  • Jim Matthews Administrator

    In general you can say:

    do shell script "blah blah blah"

    in AppleScript and it's the same as typing "blah blah blah" in the Terminal. Another option is to create a .command file. When you open a .command file it opens a window in Terminal and executes the contents of the file. Here's how you might create one in Terminal:

    cat > tunnel.command
    [type the command you want to have executed and return]
    [type Control-D]
    chmod 755 tunnel.command

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • bradmagic Member

    I am inept.

    I am unsure of the meaning: cat > tunnel.command

    I just pasted that into the Terminal with no success :)

    Many thanks.
    brad

    Posted 10 years ago #

  • Jim Matthews Administrator

    It's something you would type to Terminal. You'd type:

    cat > tunnel.command

    and then hit the return key. Then you'd type the ssh command, something like:

    ssh -L2021:hostname:21 userid@hostname

    and hit the return key. Then you'd hold down the control key and hit the "d" key. Finally, you'd type:

    chmod 755 tunnel.command

    and hit return.

    After all that, double-clicking tunnel.command should open a new window in Terminal and run the SSH command.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • bradmagic Member

    you are too kind, thank you.

    Posted 10 years ago #

  • JarredGibson Member

    Hi. I tried the whole localhost:2021 thing, and it kind of worked. But not really... I can log into the server, but then I get a "Server response: Possible PASV port theft, cannot open data connection." What gives?

    Originally posted by JimMatthews:

    You would type a command like this to Terminal:

    ssh -L2021:hostname:21 userid@hostname

    You'd replace "hostname" with the name of the server you want to connect to, and "userid" with the name of your account on the server. You'd be prompted to enter a password.

    Then you'd go to Fetch and fill in the New Connection window like this:

    Host: localhost:2021
    User ID: your userid
    Password: your password

    Also, make sure that "Use passive mode transfers (PASV)" is checked in the Firewall section of Fetch Preferences.

    Let me know if this doesn't work for you.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

  • Jim Matthews Administrator

    Apparently your server is configured to reject data connections that look like they are coming from a different computer than the one that made the original connection. Because one of Fetch's connections is tunneled and the other (data) connection isn't, they look like they are coming from separate computers. You would have to ask the server administrator to relax this restriction.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 10 years ago #

Topic closed

This topic has been closed.