Re: [CentOS] grep contents of file on remote server

2010-09-24 Thread Robert Heller
At Fri, 24 Sep 2010 13:50:11 -0400 CentOS mailing list 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 cat /root/id_rsa.pub > r...@lcent01.summitnjhome.com's pass

Re: [CentOS] grep contents of file on remote server

2010-09-24 Thread Les Mikesell
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 sen