Update: Both almut and ig have already mentioned remote mounting. Here's some more background on doing this over ssh or ftp.

On a 'nix system, non-root users can mount remote directories as a pseudo filesystem in user space, say using sshfs, or CurlFtpFs

Both of these are underpinned by the absolutely brilliant FUSE (File System in User Space).

Once mounted, you can, for example, access the file systems from the shell. You can also use utilities such as File::Find.

If you have ssh access to the remove server, and sshfs is installed:

% mkdir -p sshfs/someuser@somehost % sshfs someuser@somehost: sshfs/someuser@somehost % cd sshfs/someuser@somehost % ls -l # list remote files % echo awesome\! >cool.txt # create a file on the remote server
If you only have ftp access to the remote host, curlftpfs does the same sort of thing:
% mkdir -p ftpfs/someuser@somehost % curlftpfs ftpfs/someuser@somehost someuser:mypass@somehost % cd ftpfs/someuser@somehost % ls

In reply to Re: Comparing Directories on different servers by snoopy
in thread Comparing Directories on different servers by aryan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.