articles How do you FTP into your Forge Server?

Published → Wednesday, February 21, 2018 9:37 PM

As simpel as  1-2-3 with MacOs and Transmit v5.x

I’m using the default id_rsa key, but you can generate multiple keys and choose the one you want. However I do find that this key is the easiest to remember – since its sole purpose is to identify this machine to the others.

You will need to generate this key first and add it to the default identity store on the system. While the last step is not strictly needed for this short tutorial, it’s usually best to do so when you first set up the keys. This way the key can actually be used and you won’t be puzzled later “why doesn’t this connection work?!”

1. add the id_rsa key of your computer to your server

  1. copy the key to the clipboard in terminal
pbcopy < ~/.ssh/id_rsa.pub
  1. in Forge, navigate to the server
  2. in Forge, go to SSH keys
  3. in Forge, add a name for the key and past it in the provided fields
  4. after saving Forge will install the key on the server

optional: under your account in Forge you can add this key to the default set of keys for future installs.

2. after the key is installed we can configure Transmit

  1. in Forge, locate the external IP of your server, its the address without ()
  2. in Transmit, add a new SFTP site
    1. address: public IP (step 2.1)
    2. username: forge
    3. as password we are going to tell Transmit to use our SSH key.
      1. click on the [🔑] button
      2. Transmit uses its own key-store, we will need to import our id_rsa key
        1. click import
        2. navigate to ~/.ssh/
        3. select the private key file (the one without .pub in the filename)
        4. enter the passphrase when asked (best practice to always set one)
      3. Select the id_rsa record from the Transmit key-store

3. click connect 🎉

Transmit will give an alert when it is the first time you connect to your server – you know to make sure it’s what you intended and safe to connect.

As a Best Practice I try to avoid FTP as much as possible. My workflow consist of pushing to GIT, pull master branch and for some projects the automatic deploy feature that Forge has – combined with some scripts. But in the inevitable event something really brakes the site – it’s comforting you did this upfront for that quick fix/hack. 🤠

I used MacOS 10.12.6 and Transmit v5.0.1.