Destinations‎ > ‎


The ssh destination uses the sftp program installed on your system to do file transfers over ssh.  Public/private key certificates must be setup on the sftp server so that the userid running HashBackup can connect to the server without a userid or password.  For more information about how to setup keys, search the web for "passwordless ssh".

SSH dest.conf keywords

type (required)

Either ssh or sftp


Optional, defaults to the userid running hb


Optional defaults to 22


Files are normally created in the initial login directory on the ssh server.  To create multiple backups using the same ssh credentials, the dir keyword can be used and its value will be prepended to all filenames.  

The directory will be created on the ssh server if it doesn't already exist, but sftp can only create simple subdirectories.  Anything more complex needs to be created before running HB.


Optional, higher integer values display more debug messages.


This optional keyword allows passing ssh options to the sftp program.  For available options, see man ssh_config.  The example below uses an alternate private key file and enables extra debug messages.  If there are spaces in any option values, quote the value as you would on the command line.

destname myssh

type ssh

userid jim


port 22

dir mybackupdir

debug 2

args -oIdentityFile=~/.ssh/otherid -oLogLevel=debug