3. Press ENTER when prompted for a file name for the key pair.
4. Press ENTER two times when prompted for a passphrase.
Note: If the client is a NetScaler appliance, move the private key file to a
persistent location such as sub-directories of the /flash and /var directories.
5. Log on to the remote NetScaler appliance from the client by using a file transfer
protocol, and perform the following:
a. Change directory to /nsconfig/ssh. At the prompt, type:
cd /nsconfig/ssh
b. Use the binary transfer mode to copy the public key to this directory.
bin
put id_rsa.pub
6. Open a connection to the remote NetScaler appliance by using an SSH client, such
as PuTTY, and perform the following:
a. Log on to the remote appliance using the administrator credentials.
b. Go to the NetScaler shell.
> shell
c. At the shell prompt, change the directory to /nsconfig/ssh.
root@ns# cd /nsconfig/ssh
d. Append the public key to the authorized_keys file. At the shell prompt,
type:
root@ns# cat id_rsa.pub >> authorized_keys
Note: If the authorized_keys file does not exist at the appliance, you need
to first create the file and then append the contents.
e. Change the permission of the /flash, nsconfig, and ssh directories to 755.
root@ns# chmod 755 /flash
root@ns# chmod 755 /flash/nsconfig
root@ns# chmod 755 /flash/nsconfig/ssh
f. Change the permission of the authorized_keys file to 744.
root@ns# chmod 744 authorized_keys
Chapter 4 Initial Configuration
100