pathnames.h revision 76262
119370Spst/*	$OpenBSD: pathnames.h,v 1.5 2001/04/12 19:15:24 markus Exp $	*/
219370Spst/*	$FreeBSD: head/crypto/openssh/pathnames.h 76262 2001-05-04 04:14:23Z green $	*/
319370Spst
419370Spst/*
546283Sdfr * Author: Tatu Ylonen <ylo@cs.hut.fi>
619370Spst * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
719370Spst *                    All rights reserved
819370Spst *
919370Spst * As far as I am concerned, the code I have written for this software
1019370Spst * can be used freely for any purpose.  Any derived versions of this
1119370Spst * software must be clearly marked as such, and if the derived work is
1219370Spst * incompatible with the protocol description in the RFC file, it must be
1319370Spst * called by a name other than "ssh" or "Secure Shell".
1419370Spst */
1519370Spst
1619370Spst#define ETCDIR				"/etc/ssh"
1719370Spst#define _PATH_SSH_PIDDIR		"/var/run"
1819370Spst
1919370Spst/*
2019370Spst * System-wide file containing host keys of known hosts.  This file should be
2119370Spst * world-readable.
2219370Spst */
2319370Spst#define _PATH_SSH_SYSTEM_HOSTFILE	ETCDIR "/ssh_known_hosts"
2419370Spst#define _PATH_SSH_SYSTEM_HOSTFILE2	ETCDIR "/ssh_known_hosts2"
2519370Spst
2619370Spst/*
2719370Spst * Of these, ssh_host_key must be readable only by root, whereas ssh_config
2819370Spst * should be world-readable.
2919370Spst */
3019370Spst#define _PATH_SERVER_CONFIG_FILE	ETCDIR "/sshd_config"
3119370Spst#define _PATH_HOST_CONFIG_FILE		ETCDIR "/ssh_config"
3219370Spst#define _PATH_HOST_KEY_FILE		ETCDIR "/ssh_host_key"
3319370Spst#define _PATH_HOST_DSA_KEY_FILE		ETCDIR "/ssh_host_dsa_key"
3419370Spst#define _PATH_HOST_RSA_KEY_FILE		ETCDIR "/ssh_host_rsa_key"
3519370Spst#define _PATH_DH_PRIMES			ETCDIR "/primes"
3619370Spst
3719370Spst#define _PATH_SSH_PROGRAM		"/usr/bin/ssh"
3819370Spst
3919370Spst/*
4019370Spst * The process id of the daemon listening for connections is saved here to
4119370Spst * make it easier to kill the correct daemon when necessary.
4219370Spst */
4319370Spst#define _PATH_SSH_DAEMON_PID_FILE	_PATH_SSH_PIDDIR "/sshd.pid"
4419370Spst
4519370Spst/*
4619370Spst * The directory in user\'s home directory in which the files reside. The
4719370Spst * directory should be world-readable (though not all files are).
4819370Spst */
4919370Spst#define _PATH_SSH_USER_DIR		".ssh"
5019370Spst
5119370Spst/*
5219370Spst * Per-user file containing host keys of known hosts.  This file need not be
5319370Spst * readable by anyone except the user him/herself, though this does not
5419370Spst * contain anything particularly secret.
5519370Spst */
5619370Spst#define _PATH_SSH_USER_HOSTFILE		"~/.ssh/known_hosts"
5719370Spst#define _PATH_SSH_USER_HOSTFILE2	"~/.ssh/known_hosts2"
5819370Spst
5919370Spst/*
6019370Spst * Name of the default file containing client-side authentication key. This
6119370Spst * file should only be readable by the user him/herself.
6219370Spst */
6319370Spst#define _PATH_SSH_CLIENT_IDENTITY	".ssh/identity"
6419370Spst#define _PATH_SSH_CLIENT_ID_DSA		".ssh/id_dsa"
6519370Spst#define _PATH_SSH_CLIENT_ID_RSA		".ssh/id_rsa"
6619370Spst
6719370Spst/*
6819370Spst * Configuration file in user\'s home directory.  This file need not be
6919370Spst * readable by anyone but the user him/herself, but does not contain anything
7019370Spst * particularly secret.  If the user\'s home directory resides on an NFS
7119370Spst * volume where root is mapped to nobody, this may need to be world-readable.
7219370Spst */
7319370Spst#define _PATH_SSH_USER_CONFFILE		".ssh/config"
7419370Spst
7519370Spst/*
7619370Spst * File containing a list of those rsa keys that permit logging in as this
7719370Spst * user.  This file need not be readable by anyone but the user him/herself,
7819370Spst * but does not contain anything particularly secret.  If the user\'s home
7919370Spst * directory resides on an NFS volume where root is mapped to nobody, this
8019370Spst * may need to be world-readable.  (This file is read by the daemon which is
8119370Spst * running as root.)
8219370Spst */
8319370Spst#define _PATH_SSH_USER_PERMITTED_KEYS	".ssh/authorized_keys"
8419370Spst#define _PATH_SSH_USER_PERMITTED_KEYS2	".ssh/authorized_keys2"
8519370Spst
8619370Spst/*
8719370Spst * Per-user and system-wide ssh "rc" files.  These files are executed with
8819370Spst * /bin/sh before starting the shell or command if they exist.  They will be
8919370Spst * passed "proto cookie" as arguments if X11 forwarding with spoofing is in
9019370Spst * use.  xauth will be run if neither of these exists.
9119370Spst */
9219370Spst#define _PATH_SSH_USER_RC		".ssh/rc"
9319370Spst#define _PATH_SSH_SYSTEM_RC		ETCDIR "/sshrc"
9419370Spst
9519370Spst/*
9619370Spst * Ssh-only version of /etc/hosts.equiv.  Additionally, the daemon may use
9719370Spst * ~/.rhosts and /etc/hosts.equiv if rhosts authentication is enabled.
9819370Spst */
9919370Spst#define _PATH_SSH_HOSTS_EQUIV		ETCDIR "/shosts.equiv"
10019370Spst#define _PATH_RHOSTS_EQUIV		"/etc/hosts.equiv"
10119370Spst
10219370Spst/*
10319370Spst * Default location of askpass
10419370Spst */
10519370Spst#define _PATH_SSH_ASKPASS_DEFAULT	"/usr/X11R6/bin/ssh-askpass"
10619370Spst
10719370Spst/* for scp */
10819370Spst#define _PATH_CP			"cp"
10919370Spst
11019370Spst/* for sftp */
11119370Spst#define _PATH_SFTP_SERVER		"/usr/libexec/sftp-server"
11219370Spst#define _PATH_LS			"ls"
11319370Spst