open remote file locally?

Chris Carey chris.carey at
Wed Mar 21 08:47:25 MDT 2007

On 3/20/07, Wade Preston Shearer <lists at> wrote:
>   Is it possible to open a file on remote server as if it were local?
> For example, you can SSH into a different box and then read the
> contents of a file with vi, but is there a way view the file in one
> step without SSH-ing into the remote box first? Can this be done with
> tunneling?
> /*
> PLUG:, #utah on
> Unsubscribe:
> Don't fear the penguin.
> */

If you just want to view a file in one step you can do:

ssh user at "cat /etc/hosts"

This works well if you have ssh keypairs. It will display the file and
return you to your local shell immediately.

Chris Carey

More information about the PLUG mailing list