Last Updated on September 29, 2020

Connect Via SSH

On a Mac you can launch terminal then enter the following information to connect to a WebFaction hosting account via SSH:

ssh username@webXXX.webfaction.com

If it is your first time, it will want to know if it can create some keys.  Go ahead and hit enter.  Then it will prompt for the password.  Enter in the password you use for SFTP.

You should now be connected.

On a PC you will need to find a program that supports SSH.  It really isn’t supported by default on PC.

Find File/Folder Sizes

You can generate a list of your folders their sizes by using “du -sh *” in your webapps directory.

du: Disk Usage

-s: Display an entry for each specified file. (Equivalent to -d 0)

-h: “Human-readable” output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.

Import/Export Database via SSH

Sometimes it is necessary to import/export a database via SSH.  This is usually when the database is too big to download via a plugin or through phpMyAdmin.

Here is WebFaction’s documentation on how to do it:

https://docs.webfaction.com/user-guide/databases.html