Docs · Clients

rclone SFTP remote: settings and host key checking

rclone copies and syncs folders to and from SFTP, from a terminal or a scheduled job. Set known_hosts_file so rclone checks the server's identity.

These steps use the SFTP Harbor endpoint data.sftpharbor.com and the example login yourserver.alice: your server's name, a dot, and the user name. Signed-in customers see the same steps with their own login on the dashboard's overview.

Save the host keys, then create the remote. rclone checks the server against known_hosts_file; shell_type=none stops it from trying to run commands, which SFTP-only servers refuse.

Save the host keys
mkdir -p ~/.ssh
cat > ~/.ssh/harbor_known_hosts <<'EOF'
data.sftpharbor.com ssh-ed25519 …
EOF
Create the remote
rclone config create harbor sftp host=data.sftpharbor.com port=22 user=yourserver.alice key_file=~/.ssh/id_ed25519 known_hosts_file=~/.ssh/harbor_known_hosts shell_type=none
Copy files
rclone copy ./outbox harbor:/

Host keys are also listed on the security page, with SSHFP records. When keys are rotated, the new ones are announced 30 days ahead and included above.