Procedure for CLI and GUI:

GUI and CLI OpenSSH setup
1) Download the openSSH windows setup package from the following location: 
    http://www.mls-software.com/opensshd.html  

2)  Double-click the executable setup file [setupssh-7.3p1-2.exe]. It should be downloaded from the preceding site.

3)  Run the application and install OpenSSH to some location on local host.
     For example, "C:\Users\Administrator\Desktop\OpenSSH\"

CLI setup
4)  Change working directory to the extracted files by executing the following command:
    
     cd C:\Users\Administrator\Desktop\OpenSSH\bin
 
5) Create directory for the openSSH keys by executing the following command from the Windows command prompt:

    mkdir C:\Users\Administrator\Desktop\OpenSSH\.ssh

6) Now generate the ssh public-private key pair by executing the following commands:
    cd C:\Users\Administrator\Desktop\OpenSSH\bin
	
    ssh-keygen.exe -t rsa  -f C:\Users\Administrator\Desktop\OpenSSH\.ssh\id_rsa

7) Now create the directory structure on the storage system by executing the following command: 

    mkdir \\<filer>\etc\sshd\<username>\.ssh
       

Note: An error may be generated if this path already exists.  This can be safely ignored. 

   Example: 

   If the user name is "foo" and IP is "10.128.141.60", the command will read as:
   prompt> mkdir \\10.128.141.60\etc\sshd\foo\.ssh


8) Append the C:\Users\Administrator\Desktop\OpenSSH\.ssh\id-rsa.pub file to the storage controller's \\filer\etc$\sshd\<username>\.ssh\authorized_keys file by executing the command when    command prompt is at C:\Users\Administrator\Desktop\OpenSSH\.ssh

    type id-rsa.pub >> \\<filer_ip>\etc$\sshd\<username>\.ssh\authorized_keys

    Example: 

    If the user name is "foo" and IP is "10.128.141.60"

    C:\Users\Administrator\Desktop\OpenSSH\.ssh>type id-rsa.pub >> \\10.128.141.60\etc$\sshd\foo\.ssh\authorized_keys  


9)  Test the connection (has to be passwordless! and return the Data ONTAP version running on the filer) by executing the following command when command prompt is at c:\temp\openSSH\.ssh :
     ssh.exe -i C:\Users\Administrator\Desktop\OpenSSH\.ssh\id_rsa -l <username> <filer_ip> "version"

     Note: If password is requested - perfstat would not work and one of previous steps failed.

     Example:

     If the username is "root" and IP is "10.128.141.60"
     C:\Users\Administrator\Desktop\OpenSSH\bin> ssh.exe -i C:\Users\Administrator\Desktop\OpenSSH\.ssh\id-rsa -l root 10.128.141.60 "version"
   
     Output will be:
     NetApp Release 8.1RC2 7-Mode: Thu Oct 27 19:26:06 PDT 2011

     10)   Extract Perfstat8 file into C:\Users\Administrator\Desktop\OpenSSH\bin. Now you can use -g option (OPEN SSH) with --sshprivatekey-file for your perfstat run

      Format : C:\Users\Administrator\Desktop\OpenSSH\bin> perfstat8.exe --nodes <filer_ip> --sshprivatekey-file=C:\Users\Administrator\Desktop\OpenSSH\.ssh\id-rsa -l root -g --mode="7-mode" 
[OPTIONS] 

      Example: 
      If the user name is "root", IP is "10.128.141.60" and want to run for 10 iterations.
      C:\Users\Administrator\Desktop\OpenSSH\bin> perfstat8.exe --nodes 10.128.141.60 --sshprivatekey-file=C:\Users\Administrator\Desktop\OpenSSH\.ssh\id-rsa -l root -g --mode="7-mode"  -i 	  
11) Add controller to 'trusted known host list' on the client before running the Perfstat.
	ssh.exe -l <anyUser>  <your controller name/IP> -i <ssh private key file path> "version"
	This will create known_hosts file to user home directory. Please provide known_hosts file while executing Perfstat v8.3 in the command line. By default Perfstat v8.3 look known_hosts file to same path as sshprivatekey-file path.
	CLI option to provide known_host file path is - "--SSHKnownHosts-FilePath="
	CLI command reads as-
	C:\Users\Administrator\Desktop\OpenSSH\bin> perfstat8.exe --nodes 10.128.141.60 --sshprivatekey-file=C:\Users\Administrator\Desktop\OpenSSH\.ssh\id-rsa -l root -g --mode="7-mode"  -i 10 --SSHKnownHosts-FilePath="C:\Users\Administrator\.ssh\know_hosts"
