libssh

Secure File Transfer Protocol via libssh

Read from or write to remote resources using SFTP protocol.

Following syntax is required.

sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg

This protocol accepts the following options.

'timeout'

Set timeout of socket I/O operations used by the underlying low level operation. By default it is set to -1, which means that the timeout is not specified.

'truncate'

Truncate existing files on write, if set to 1. A value of 0 prevents truncating. Default value is 1.

'private_key'

Specify the path of the file containing private key to use during authorization. By default libssh searches for keys in the '~/.ssh/' directory.

Example: Play a file stored on remote server.

ffplay sftp://user:password@server_address:22/home/user/resource.mpeg