List contents of file on remote server

Norman Gaywood norm at turing.une.edu.au
Fri Sep 17 02:42:59 UTC 2004


On Thu, Sep 16, 2004 at 10:08:57PM -0400, Michael E. Webster wrote:
> On Thu, 2004-09-16 at 21:32, Ben Halicki wrote:
> > Anyone know a quick and easy way to list the contents of a file on a
> > remote machine?  Similar to the cat command, but the file is sitting
> > on another server.  I was thinking about using scp to copy the file to
> > the local machine first, then using cat, but thought there might be a
> > way of performing this in one step?
 
> Take a look at rsh - it will do what you're wanting.

rsh is fine in a restricted environment but the OP has scp working. So
he may as well use ssh:

ssh user at host cat filename

Graphically, if you are using KDE, and you have your ssh keys setup,
you can use this URL in konqueror:

fish://user@host

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

norm at turing.une.edu.au            Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~norm    Fax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html





More information about the fedora-list mailing list