![HP NonStop SSH 544701-014 Reference Manual Download Page 200](http://html.mh-extra.com/html/hp/nonstop-ssh-544701-014/nonstop-ssh-544701-014_reference-manual_165151200.webp)
200
•
SSH and SFTP Client Reference
HP NonStop SSH Reference Manual
Runtime options relevant only when automating SSH client
-H string
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 [email protected]
comForte SSH client version T9999H06_16Apr2008_comForte_SSH_0079
You have no private keys in the key store.
Trying password authentication.
Enter [email protected]'s password:
Add password for [email protected] 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 [email protected] pwd
comForte SSH client version T9999H06_16Apr2008_comForte_SSH_0079
You have no private keys in the key store.
Trying password authentication.
Enter [email protected]'s password:
Add password for [email protected] to the password store (yes/no)? yes
Summary of Contents for NonStop SSH 544701-014
Page 12: ...xii Contents HP NonStop SSH Reference Manual ...
Page 24: ...24 Preface HP NonStop SSH Reference Manual ...
Page 30: ...30 Introduction HP NonStop SSH Reference Manual ...
Page 46: ...46 Installation Quick Start HP NonStop SSH Reference Manual ...
Page 132: ...132 The SSH User Database HP NonStop SSH Reference Manual ...
Page 214: ...214 SSH and SFTP Client Reference HP NonStop SSH Reference Manual ...
Page 278: ...278 STN Reference HP NonStop SSH Reference Manual ...
Page 298: ...298 Monitoring and Auditing HP NonStop SSH Reference Manual ...
Page 302: ...302 Performance Considerations HP NonStop SSH Reference Manual ...