SSH Reference Manual
Set specific string used as prefix for error messages displayed by the SSH client during the connection phase. Double 
quotes can be used to define strings containing a space or special characters. The prefix for errors can also be specified 
via PARAM/environment variable SSHERRORPREFIX (the -H option takes precedence over the PARAM/environment 
variable). There is no specific error prefix defined as default. 
-J string 
Set specific string used as prefix for informational or warning messages displayed by the SSH client during the 
connection phase. Double quotes can be used to define strings containing a space or special characters. The prefix for 
infos/warnings can also be specified via PARAM/ environment variable SSHINFOPREFIX (the -J option takes 
precedence over the PARAM/environment variable). There is no specific info/warning prefix defined as default. 
-K string 
Set specific string used as prefix for prompt/query messages displayed by the SSH client during the connection phase. 
Double quotes can be used to define strings containing a space or special characters. The prefix for infos/warnings can 
also be specified via PARAM/environment variable SSHQUERYPREFIX (the -K option takes precedence over the 
PARAM/environment variable). There is no specific query prefix defined as default. 
Using the SSH client to create a shell controlling a remote 
system 
Creating a full shell 
The following example shows how to connect to a Linux system and execute some commands on that system using the 
SSH client from Guardian: 
$TB TBSSH79 7> run ssh -S $TBS79 burgt@10.0.0.12 
SSH client version T9999H06_22Jan2014_comForte_SSH_0097 
You have no private keys in the key store. 
Trying password authentication. 
Enter burgt@10.0.0.12's password: 
Add password for burgt@10.0.0.12 to the password store (yes/no)? no 
Last login: Thu Jun 5 07:45:45 2008 from 10.0.3.98 
Have a lot of fun... 
burgt@np-dev02:~> pwd 
/home/burgt 
burgt@np-dev02:~> ls 
abc etestftp etestsftp_old glubwrap t4gig_file 
bin  
burgt@np-dev02:~> exit 
logout 
$TB TBSSH79 8> 
Note that for the first connection a KNOWNHOST will have to be configured for the remote system in able to connect. 
Also note that the password of the remote system was queried once and not stored in the database. The last command 
“exit” tells the remote system to end the shell session. 
Executing a single command 
The following example shows how to connect to a Linux system and execute a single command on that system using the 
SSH client from OSS: 
$TB TBSSH79 8> run ssh -S $TBS79 burgt@10.0.0.12 pwd 
SSH client version T9999H06_22Jan2014_comForte_SSH_0097 
You have no private keys in the key store. 
Trying password authentication. 
Enter burgt@10.0.0.12's password: 
Add password for burgt@10.0.0.12 to the password store (yes/no)? yes 
/home/burgt 
$TB TBSSH79 9> run ssh -S $TBS79 burgt@10.0.0.12 pwd 
SSH client version T9999H06_22Jan2014_comForte_SSH_0097 
/home/burgt 
224 • SSH and SFTP Client Reference  HP NonStop SSH Reference Manual 










