SSH Reference Manual
SSHCOM Command Reference 
SSHCOM Overview 
SSHCOM is a command interpreter delivered with the SSH2 component. It is used to view and maintain the SSH2 user 
database. Using SSHCOM is similar to working with the HP PATHCOM utility. You connect to an existing SSH2 
process using the OPEN command, then you issue commands against that instance of SSH2, which will access the 
corresponding area in the database. Please see section "Overview of SSH Operation Modes
" for an explanation for the 
logical separation of those database entities that are related to outgoing connections (client mode entities) and database 
entities that are related to incoming connections. 
SSHCOM commands can be continued over multiple lines. When an ampersand ("&") appears as the last character on a 
line, the command is continued with the first column of the next line. There is no limit on the number of lines over which 
a command may be continued, but commands are limited to 10240 characters. Prior to STN version B24 the limit was 
1024 characters. Note that SSHCOM and STNCOM have the same code base. If SSHCOM is prompting at a terminal 
for input, the prompt for continuation lines will be the current prompt prefixed by ampersand ampersand space: "&& ". 
Continuations are allowed from terminals, IN files and OBEY files. 
SSHCOM is started with a simple TACL command. After switching to the proper mode (see "
Overview of SSH 
Operation Modes" in the chapter "The SSH User Database"), the HELP command will give you a brief overview of the 
supported commands. Note that the HELP command will result in a different output in the two modes. The following 
example shows the output in client mode: 
$QAHPSSH T0801ABK 3> run sshcom $ssh01 
SSHCOM T0801H01_22JAN2014_ABK - 2014-01-24 14:18:49.958 
OPEN $ssh01 
% mode client 
mode client 
OK, switched to client mode 
% help 
help 
+-----------------------Main Menu-------SSHCOM CLIENT Mode--------------------+ 
| | 
| Client Mode Commands: | 
| ===================== | 
| | 
| Commands operating on KEY entity: | 
| --------------------------------- | 
| ALTER DELETE EXPORT FREEZE | 
| GENERATE IMPORT INFO RENAME | 
| THAW  | 
| | 
| Commands operating on KNOWNHOST entity: | 
| --------------------------------------- | 
| ADD ALTER DELETE FREEZE | 
| INFO RENAME THAW | 
| | 
| Commands operating on PASSWORD entity: | 
| --------------------------------------- | 
| ADD ALTER DELETE FREEZE | 
HP NonStop SSH Reference Manual  SSHCOM Command Reference • 153 










