session_url » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2013-05-29 | 2013-07-29 | ||
surround instead of enclose (martin) | suggest always specifying protocol (martin) | ||
Line 5: | Line 5: | ||
[ sftp|ftp|ftps|scp :// ][ <username> [ : <password> ] @ ] <host> [ : <port> ] | [ sftp|ftp|ftps|scp :// ][ <username> [ : <password> ] @ ] <host> [ : <port> ] | ||
- | The only mandatory part is ''host''. Most URL's will include also ''username'' and protocol (''sftp'', ''ftp'' or ''scp''). Note that ''sftp'' protocol is the default one, but the default can be changed. The ''ftps'' protocol is FTP over SSL/TLS. The ''port'' needs to be specified only, when it differs from the default port for the protocol (22 for ''sftp''/''scp'', 21 for ''ftp'' and 990 for ''ftps''). | + | The only mandatory part is ''host''. You should also always explicitly specify a protocol (''sftp'', ''ftp'' or ''scp'', the ''ftps'' protocol is FTP over SSL/TLS). ((Protocol is ''sftp'' by default, but the default can be changed.)) Most URL's will include also ''username''. The ''port'' needs to be specified only, when it differs from the default port for the protocol (22 for ''sftp''/''scp'', 21 for ''ftp'' and 990 for ''ftps''). |
The ''host'' can either be a host name (such as ''example.com''), an IPv4 address (such as ''127.0.0.1'') or an IPv6 address surrounded by square brackets (such as ''[2001:db8:85a3:8d3:1319:8a2e:370:7348]''). | The ''host'' can either be a host name (such as ''example.com''), an IPv4 address (such as ''127.0.0.1'') or an IPv6 address surrounded by square brackets (such as ''[2001:db8:85a3:8d3:1319:8a2e:370:7348]''). |