HARBOR USER GUIDE

File transfer (SFTP)

Copy files and folders between your computer and servers, edit remote files in your own editor, and browse files beside the terminal.

File transfer (SFTP)

Harbor moves files over SFTP, which runs inside SSH, so it works with any server you can log in to. There are two ways to use it: a two-pane file browser tab, and a files panel beside the terminal.

File browser tabs

Open one with Files on a host’s card, from a host’s right-click menu, or from a terminal tab’s menu. Your computer is on the left and the server on the right. Each file browser tab uses its own connection, shown as sftp in the Sessions page.

Copy files and folders

  • Drag files between the two panes.
  • Drop files from Explorer, Finder or your file manager onto the server pane.
  • Or right-click and choose Upload or Download.

Folders are copied with everything in them. Harbor asks before replacing existing items.

The transfer queue

The queue shows each transfer’s progress, speed and file count. Two transfers run at once per tab and the rest wait. Cancel at any time; a cancelled file is removed rather than left half-copied. Clear finished tidies the list.

Manage files

Action How
Open a folder, or open a file to edit Enter or double-click
Up one folder Backspace or Alt+↑
Select several Shift+click, Ctrl+click (macOS ⌘click), Ctrl+A
Rename F2
Delete Del (macOS ⌘⌫)
Refresh F5
New folder, copy path right-click
Move within the same pane drag onto a folder

Type a path in the address bar to go there, sort by any column, and show or hide hidden files. On Windows, going up from a drive root lists your drives.

Deleting on the server is permanent. On your computer, deleted files go to the Recycle Bin or Trash.

Edit remote files

Double-click a file on the server to open it in your computer’s default app for that file type. Each time you save it there, Harbor uploads it back to the server.

  • The local copy is kept in a private folder inside Harbor’s data folder and deleted the next time Harbor starts.
  • Files whose type would run rather than open (such as .exe, .bat, .sh, .js, .command) are opened as text, with .txt added to the local copy’s name, so opening a file never starts a program. The file on the server keeps its name.
  • Uploads stop when the session closes.

Files beside the terminal

Ctrl+Shift+O (macOS ⌘O), or Show files beside terminal in the tab menu, opens a files panel on the terminal’s own connection: browse, upload (button or drop), download to your Downloads folder, open and edit, rename and delete.

With Follow terminal on, the panel moves to the shell’s current folder after each command. Harbor reads the folder from the prompt (such as user@host:~/app$); click Track it exactly to have bash or zsh report it directly for that session.

Permissions and ownership

SFTP acts as the user you logged in as. To change files owned by root, edit them in the terminal with sudo, or Blocks mode can show and revert what changed.