Strovent SystemsSign in
App guide

SFTP file browser errors: Permission denied, No such file

What the red error line in the Strovent Terminal SFTP browser means, from Permission denied and No such file or directory to Failure and SFTP connection closed.

When something goes wrong in the SFTP browser (SFTP files… in the long-press menu of an SSH or Mosh session), Strovent Terminal shows the reason in red at the top of the panel.

How the message is built

Most errors are the path, a colon, and the reason the server gave:

/home/user1/reports: Permission denied

If the server sends no text, the app uses the standard SFTP status name instead: No such file or directory, Permission denied, Failure, Bad message, No connection, Connection lost, Operation not supported or End of file.

Permission denied

The account you logged in with cannot read or write that path. SFTP follows the host's file permissions, so the same thing would fail in a shell.

  • Upload: the file goes into the folder shown in Path, under the file's own name. You need write access to that folder. If a file with that name already exists, the upload replaces it, so you also need write access to that file.
  • Download or opening a folder: you need read access to the file, or read access to the folder to list it.

Tap Up to go to a folder you can use, or ask the host's administrator for access.

No such file or directory

The path does not exist on the host. This is common after typing a folder in Path and tapping Go: the app asks the server to resolve the path before listing it. Check the spelling and case, since most hosts treat Reports and reports as different names. Tap Refresh if the file was just moved or deleted.

Failure

A general error with no detail. A frequent cause is New folder with a name that already exists, because SFTP has no separate status for "already exists". Tap Refresh to see whether the folder is already there.

The app itself refuses a folder name with a slash and shows Enter a folder name without "/". Create one level at a time.

SFTP connection closed

The SFTP connection ended, for example after a network change or because the host closed it. Close the browser and open SFTP files… again. The SFTP browser uses its own SSH connection, so the terminal session may still be working.

Bad SFTP packet from the server

The server sent data that is not a valid SFTP reply. The usual cause is text printed by the account's shell startup files, which gets mixed into the SFTP stream. See SFTP "Received message too long" for the fix on the host.

Cancelled

You tapped Cancel during a transfer. Start it again when you are ready.

Folders and several files

The browser uploads and downloads one file at a time. To copy a whole folder, use a command-line SFTP client on a computer, as described in sftp put -r: copy a whole folder, and "Couldn't canonicalize".

Spotted a mistake? Email [email protected].