This is an old revision of the document!

Session URL

On command-line and in parameters of scripting command open, you can, in addition to using stored-session name, specify an ad-hoc session using URL.

The syntax is:

[ sftp|ftp|scp :// ][ <user> [ : <password> ] @ ] <host> [ : <port> ]

Advertisement

The host can either be a host name (such as example.com) or an IP address (such as 127.0.0.1).

Special characters (like @ in username) can be encoded using %XX syntax, where XX is hexadecimal ASCII code.

Common special characters are:

  • space: %20 or +
  • %: %25 (percent sign)
  • +: %2B (plus sign)
  • /: %2F (slash)
  • @: %40 (at sign)

Examples:

sftp://martin@example.com
martin%40example.com:4pRte!ai%253@example.com
sftp://root@example.com:2121
example.com

Last modified: by martin