On 9/24/2010 12:50 PM, Tim Dunphy wrote:
> Hello,
>
>   I am attempting to grep the contents of a key file I have SCP'd to a
> remote server. I am able to cat it:
>
> [code]
> [bluethu...@lbsd2:~]$:ssh r...@sum1 grep `cat /root/id_rsa.pub`

Put single quotes around the whole command you want to send to the 
remote.  Otherwise your local shell is going to process the backtick 
expansion before anything else.  And grep is just as capable of reading 
the file as cat anyway.

-- 
   Les Mikesell
    lesmikes...@gmail.com



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to