List contents of file on remote server

Michael E. Webster mwebster at intercosmos.com
Fri Sep 17 02:51:39 UTC 2004


On Thu, 2004-09-16 at 22:42, Norman Gaywood wrote:
> 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
> 
> -- 
Very true.  I was offering an alternative.  If scp is already set up,
then ssh is the way to go.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040916/6e090a9f/attachment-0002.bin 


More information about the users mailing list