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
- copy the key to the clipboard in terminal
pbcopy < ~/.ssh/id_rsa.pub
- in Forge, navigate to the server
- in Forge, go to SSH keys
- in Forge, add a name for the key and past it in the provided fields
- 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
- in Forge, locate the external IP of your server, its the address without ()
- in Transmit, add a new SFTP site
- address: public IP (step 2.1)
- username: forge
- as password we are going to tell Transmit to use our SSH key.
- click on the [🔑] button
- Transmit uses its own key-store, we will need to import our id_rsa key
- click import
- navigate to ~/.ssh/
- select the private key file (the one without .pub in the filename)
- enter the passphrase when asked (best practice to always set one)
- 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.