open remote file locally?

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


On 3/20/07, Wade Preston Shearer <lists at wadeshearer.com> 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: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>
>


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

ssh user at remote-server.com "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