HP-UX Secure Shell Getting Started Guide HP-UX 11i v1, HP-UX 11i v2, and HP-UX 11i v3 (5900-3142, June 2013)

A Configuration Files and Directives
This appendix describes the configuration files that are created upon installing HP-UX Secure Shell.
This appendix also describes various configuration directives available in the HP-UX Secure Shell
server and client configuration files.
This chapter addresses the following topics:
“HP-UX Secure Shell Configuration Files (page 63)
“Server Configuration Directives (page 63)
“Client Configuration Directives (page 83)
HP-UX Secure Shell Configuration Files
When you install HP-UX Secure Shell, the configuration files are automatically created on the
system. The configuration files contain the directive settings for both the server and the clients.
Table 22 lists the HP-UX Secure Shell server and client configuration files.
Table 22 Configuration Files
File NameFile
/opt/ssh/etc/sshd_configServer configuration file
/opt/ssh/etc/ssh_configClient configuration file
You can use the default settings listed in these files, or you can modify these values according to
your needs.
Server Configuration Directives
The /etc/ssh/sshd_config file is the systemwide server configuration file for HP-UX Secure
Shell. This configuration file enables you to set options that modify the operation of the sshd
daemon. This file contains configuration directives in the form of keyword-value pairs.
NOTE: The keywords are case insensitive and arguments are case sensitive.
AcceptEnv
Use this directive to specify the environment variables sent by the client that must be copied into
the session environment. Specify variables using their names. Variables can contain the wildcard
characters star (*) and question mark (?). Use white space to separate multiple environment
variables. You can spread multiple environment variables across multiple AcceptEnv directives.
The AcceptEnv directive is available only for the SSH-2 protocol.
By default, HP-UX Secure Shell does not pass any environment variables.
NOTE: Some environment variables can bypass the restricted user environment, so you must be
careful when using the AcceptEnv directive.
For example:
AcceptEnv yes
AddressFamily
Use this directive to specify the address family to be used by sshd(8). Valid arguments are any,
inet (use IPv4 only), or inet6 (use IPv6 only).
The default is any.
For example:
AddressFamily any
HP-UX Secure Shell Configuration Files 63