3PAR InForm® OS 2.3.1 CLI Administrator's Manual (320-200180 Rev B, February 2010)

3.23
SSH
InForm OS Version 2.3.1 3PAR InForm CLI Administrator’s Manual
You are now in the CLI shell and can issue any CLI command as documented in this manual.
5 If you need to create CLI additional users, issue the
createuser command.
In the previous example, new user
user2 with password testpw is created.
6 Terminate the CLI session by typing
exit at the prompt.
Newly created CLI users can access the CLI by following the instructions as explained earlier,
substituting their own user name, system name, and password when prompted.
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.
<
InServ–host–name> cli % createuser –c testpw user2 all edit
<
InServ–host–name> cli % exit
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