3PAR InForm® OS 2.2.4 CLI Administrator's Manual (320-200113 Rev A, March 2009)
3.24
SSH
3PAR InForm OS CLI Administrator’s Manual InForm OS Version 2.2.4
3.4.4 CLI Scripting Through SSH
You can use SSH key authentication to issue CLI commands in scripts. No password is required,
however you will need to generate a public/private key pair.
The public key must be stored on the InServ system using the setsshkey command to
enable log in without a password.
The private key must be kept in a file accessible by scripts that use CLI commands.
The key pair is generated by using the ssh–keygen utility (typically included in an SSH client
software package and available on UNIX and Windows platforms).
The following steps describe setting up CLI scripting through SSH:
1 Create a CLI user and password using the
createuser command.
In the previous example, user
user1 logs into InServ system system1 and creates user
user3 with the password testpw3.
2 Create a key pair using the ssh–keygen utility. Both
rsa and dsa key formats are supported
by the InServ system and recommended key length is 1024.
To create a key pair using
rsa format:.
NOTE: The following screen examples display output for UNIX systems. Windows
screens are identical, with DOS prompts replacing UNIX prompts.
$ssh user1@system1
3paradm’s password: ******
system1 cli% createuser –c testpw3 user3 all browse
User created
NOTE: For additional information about the ssh–keygen utility and rsa and dsa
key formats, consult your SSH client documentation.
$ ssh–keygen –b 1024 –t rsa