Inquiring User Name If Not Supplied; Configuring The Ssh2 Process To Use - HP NonStop SSH 544701-014 Reference Manual

Table of Contents

Advertisement

STN44 Application has connected to this window
/G/DATA1/USHOME:
Example for starting SFTPOSS client using IPv6 address:
sftposs u.sauer@[fe80::250:56ff:fea7:4bdc]
SFTPOSS client version T9999H06_17Apr2012_comForte_SFTPOSS_0092
Connecting to fe80::a00:8eff:fe00:d14e via SSH2 process $SSH01 ...
GSSAPI authentication disabled.
You have no private keys in the key store.
Trying password authentication.
Enter comf.us@fe80::a00:8eff:fe00:d14e's password:
Add password for comf.us@[fe80::a00:8eff:fe00:d14e]:54022 to the password store
(yes/no)? no
sftp>

Configuring the SSH2 Process to Use

As mentioned earlier, the SSH and SFTP clients will interact with a running instance of the SSH2 object file. There are
multiple ways to specify which instance to use:
The –S runtime option will explicitly choose a specific instance by its process name. The following example
starts an SFTP client picking the SSH2 instance with the process name $SSH1 (please note that under OSS the
process name is embedded into single quotes to allow the special character $ to be used as part of a shell
command):
>: sftposs -S '$ssh1' burgt@10.0.0.201
Connecting to 10.0.0.201...
sftp>
By setting an environment variable named SSH2PREFIX in the client environment you can activate a heuristic
to pick an SSH2 process depending on the CPU number it is running in. Please refer to
Outbound SSH
Sessions" in the chapter "Configuring and Running SSH2" for details.
By setting an environment variable SSH2_PROCESS_NAME in the OSS shell specifying the SSH2 process the
client should use.
By adding a define =SSH2^PROCESS^NAME, CLASS MAP and the SSH2 process name set as FILE value.

Inquiring User Name If Not Supplied

The SSH[OSS] and SFTP[OSS] clients accept argument user@host as well as just host. If no user is specified the current
user, i.e. the user who started the client, is taken as default value. This default can be changed via environment variable
INQUIREUSERNAMEIFNOTSUPPLIED, which must be defined in the environment (TACL/shell) the clients are
started from.
If PARAM/environment variable INQUIREUSERNAMEIFNOTSUPPLIED is set to true and the username was not
specified, the SFTP[OSS] and SSH[OSS] clients now prompt the user for the username:
> ssh 10.0.0.196
comForte SSH client version T9999G06_12Feb2009_SSH_0084
User name @10.0.0.196: test
You have no private keys in the key store.
Trying password authentication.
Enter test@10.0.0.196's password:
...
194 • SSH and SFTP Client Reference
"Load-Balancing
HP NonStop SSH Reference Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents