--- sftp.1-orig 2004-11-19 12:50:01.312073016 -0500 +++ sftp.1 2004-11-19 12:50:21.004079376 -0500 @@ -43,13 +43,10 @@ .Ar host .Ek .Nm sftp -.Oo Oo Ar user Ns @ Oc Ns -.Ar host Ns Oo : Ns Ar file Oo -.Ar file Oc Oc Oc +.Ar remotefile +.Op Ar localfile .Nm sftp -.Oo Oo Ar user Ns @ Oc Ns -.Ar host Ns Oo : Ns Ar dir Ns -.Oo Ar / Oc Oc Oc +.Ar remotedir .Nm sftp .Fl b Ar batchfile .Oo Ar user Ns @ Oc Ns Ar host @@ -82,6 +79,15 @@ and .Xr ssh-keygen 1 for details). + .Pp +The most general form of a remote file or directory specification is +[user@[hostname:]]path, that is a path, optionally preceded by a +colon-delimited hostname part, optionally preceded by an @-delimited +username. The / on the end of the directory is optional. The host +defaults to localhost and the username to that of the calling user; +relative paths on each host are relative to the user's home directory +on that host. +.Pp The options are as follows: .Bl -tag -width Ds .It Fl 1