struct tapi_ssh_server_opt
Overview
OpenSSH server specific options More…
#include <tapi_ssh.h> struct tapi_ssh_server_opt { // fields char* path; char* config_file; char* host_key_file; char* authorized_keys_file; tapi_ssh_permit_root_login_t permit_root_login; char* pid_file; bool pub_key_authentication; bool strict_modes; unsigned int port; };
Detailed Documentation
OpenSSH server specific options
Fields
char* path
Path to sshd binary
char* config_file
File to configure sshd
sshd -f <config_file>
char* host_key_file
File to read a host key from
sshd -h <host_key_file>
char* authorized_keys_file
File with public keys for users authentication
sshd -o AuthorizedKeysFile=<authorized_keys_file>
tapi_ssh_permit_root_login_t permit_root_login
Specifies whether root login is allowed
sshd -o PermitRootLogin=<permit_root_login>
May be yes
, no
, forced-commands-only
or prohibit-password
char* pid_file
File to store SSHD process ID
sshd -o PidFile=<pid_file>
bool pub_key_authentication
Specifies whether public key authentication is allowed
sshd -o PubkeyAuthentication=<pub_key_authentication>
May be yes
or no
bool strict_modes
Sets checking ownership of user’s files and home directory before allowing the login.
For instance authorized_keys file may reside in directory that is owned not only by user. To allow sshd consider logged users pubkeys from such authorized_keys file, we should set the option value on no
sshd -o StrictModes=<strict_modes>
May be yes
or no
unsigned int port
Port to listen on
sshd -p <port>