Upload your website with SFTP
Put a small website on your own web host. You'll send its files from your computer, open the site in a browser, then change one heading and see the update online. The practice site goes in its own folder so your current home page stays in place.
You'll use Phoenix Code to edit and FileZilla Client to upload. SFTP is a way to transfer files securely. The steps are the same in Phoenix Code Community and Pro on Windows, macOS, and Linux.
Click or tap any screenshot to see it full size.
1. Get the practice site ready
- Download the Trail Notes practice website. On Windows, right-click the ZIP and choose Extract All. On macOS, double-click the ZIP in Finder. On Linux, open the ZIP in your archive manager and choose Extract.
- In Phoenix Code, choose File → Open Folder…. Select the extracted
first-websitefolder that containsindex.html. In the file list you should seeabout.html,contact.html,index.html,styles.css, and animagesfolder. - Open
index.htmland choose File → Save All. The home page has the heading A little time outside. See the finished practice site.
2. Connect to your web host
Install FileZilla Client for your operating system. You'll also need a web hosting account with SFTP enabled. Look in your hosting dashboard or ask your provider for these details.
- To sign in, get the SFTP hostname, username, password, and port. Ask for the server's SHA256 fingerprint too. You'll use it to check the first connection.
- To open the website, get the name of the folder where your host serves web pages and the website address you can open in your browser.
If your host gave you a private key file, follow FileZilla’s key-file sign-in instructions and then go to the host key check below. For a password, start here.
-
Open FileZilla Client. In Host at the top, type
sftp://followed by the hostname your provider gave you. For example, if the hostname isupload.example.com, entersftp://upload.example.com. -
Fill in Username, Password, and Port with your host's values. Click Quickconnect. If FileZilla asks whether to remember the password, you can choose Do not save passwords and OK.
-
On the first connection you may see Unknown host key. The fingerprint identifies the server. Compare the SHA256 value with the one supplied by your host. If it matches, click OK. If it differs or you don't have one to compare, ask your host to confirm it before continuing. The values in these screenshots belong to the practice server.
3. Choose where the files go
- Left — Local site shows your computer. Open the extracted
first-websitefolder here. The lower list should show the same five names you saw in Phoenix Code. - Right — Remote site shows your host. Double-click the public folder your host named. Ours is
public_html. Your account may already open inside its public folder.
On the right, right-click empty space in the lower file list. On a Mac you can also Control-click. Choose Create directory and enter it. Replace the selected words New directory with trail-notes and click OK. The Remote site path now ends in /trail-notes, and the file list is empty. If that name is already in use, choose a fresh name and use it in the web address below.
4. Upload and open the website
-
In the lower left list, click
images, then hold Shift and clickstyles.css. Check that the folder and all four files are highlighted. Right-click a highlighted name and choose Upload. -
Wait for Queue: empty at the bottom. For this project Successful transfers shows 5. Check that the right-hand folder contains
index.html,about.html,contact.html,styles.css, andimages. -
Open your website's address in a browser and add
/trail-notes/to the end. For example, a site athttps://example.comwould usehttps://example.com/trail-notes/. You should see A little time outside. and a picture of green hills. Click About, then Contact, to check the other pages.
5. Change one heading and see it online
-
In Phoenix Code, open
index.html. Find<h1>A little time outside.</h1>. Change just the words between the tags toOur weekend walks.and choose File → Save File. -
Back in FileZilla, check that Remote site still ends in your practice folder. Right-click just
index.htmlon the left and choose Upload. When Target file already exists appears, check that the target is your practice folder'sindex.html, choose Overwrite, and click OK. -
Wait for the queue to empty. Return to the Home page at your website's address and reload the browser. The heading should now read Our weekend walks.
If you see Page not found, check the right-hand folder in FileZilla. index.html belongs directly inside trail-notes. If the heading loads but the picture is missing, open the remote images folder and check for trail.svg.





