1827807 Members
2741 Online
109969 Solutions
New Discussion

Re: ssh version

 
Viney Kumar
Regular Advisor

ssh version

Hi All

Me unble to grep ssh version and apend its output in logs files in shell scripting. me trying like:--

#ssh -V >> logfile

there any other comman way to grep and store the ssh version output in log file for diffrent platform.


Thanks

vinay
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: ssh version

Hi Vinay:

You simply need:

# ssh -V 2>> logfile

...the output is from STDERR.

Regards!

...JRF...
Jupinder Bedi
Respected Contributor

Re: ssh version

ssh -V 2 >> filename will do
All things excellent are as difficult as they are rare
Jupinder Bedi
Respected Contributor

Re: ssh version

I am really sorry JRF for repeating the same answer actually my reply window was opened at that time and I was trying the command in the server.

All things excellent are as difficult as they are rare
johnsonpk
Honored Contributor

Re: ssh version

try this

ssh -V 2>logfile

Thanks
Johnson
johnsonpk
Honored Contributor

Re: ssh version

Jupinder, same here :-)
Viney Kumar
Regular Advisor

Re: ssh version

Thanks

its works