wget -r -l 0 <ftp|sftp>://<user>:<password>@<host>/<path>/* // -r means recursive. // -l 0 for infinite recursion, because -r by default have recursion depth of 5. // If the host is 'example.com' and the path is 'foo/bar' with the file 'baz.txt', // the result will be './example.com/foo/bar/baz.txt'.