Home Explore Blog CI



man-pages

18th chunk of `ssh.man`
9e0cc7d6b778b24d415f2379ad38460d81533256aa724831000000010000091e
 ~/.ssh/known_hosts
               Contains  a  list of host keys for all hosts the user has logged
               into that are not already in the systemwide list of  known  host
               keys.   See  sshd(8)  for  further details of the format of this
               file.

       ~/.ssh/rc
               Commands in this file are executed by ssh when the user logs in,
               just before the user’s shell (or command) is started.   See  the
               sshd(8) manual page for more information.

       /etc/hosts.equiv
               This  file  is  for  host‐based  authentication (see above).  It
               should only be writable by root.

       /etc/ssh/shosts.equiv
               This file is used in exactly the same way  as  hosts.equiv,  but
               allows  host‐based  authentication without permitting login with
               rlogin/rsh.

       /etc/ssh/ssh_config
               Systemwide configuration file.  The file format  and  configura‐
               tion options are described in ssh_config(5).

       /etc/ssh/ssh_host_key
       /etc/ssh/ssh_host_dsa_key
       /etc/ssh/ssh_host_ecdsa_key
       /etc/ssh/ssh_host_ed25519_key
       /etc/ssh/ssh_host_rsa_key
               These  files  contain the private parts of the host keys and are
               used for host‐based authentication.

       /etc/ssh/ssh_known_hosts
               Systemwide list of known host keys.  This file  should  be  pre‐
               pared  by  the  system  administrator to contain the public host
               keys of all machines in the organization.  It should  be  world‐
               readable.  See sshd(8) for further details of the format of this
               file.

       /etc/ssh/sshrc
               Commands in this file are executed by ssh when the user logs in,
               just  before  the user’s shell (or command) is started.  See the
               sshd(8) manual page for more information.

EXIT STATUS
       ssh exits with the exit status of the remote command or with 255  if  an
       error occurred.

SEE ALSO
       scp(1),  sftp(1), ssh‐add(1), ssh‐agent(1), ssh‐argv0(1), ssh‐keygen(1),
       ssh‐keyscan(1), tun(4), ssh_config(5), ssh‐keysign(8), sshd(8)

STANDARDS
       S. Lehtinen and C. Lonvick, The Secure  Shell

Title: SSH Configuration and Host Keys Files
Summary
This section describes more SSH configuration files: ~/.ssh/known_hosts (user's list of known host keys), ~/.ssh/rc (commands executed on login), /etc/hosts.equiv (host-based authentication), /etc/ssh/shosts.equiv (host-based authentication without rlogin/rsh), /etc/ssh/ssh_config (system-wide configuration), /etc/ssh/ssh_host_*_key (private host keys), /etc/ssh/ssh_known_hosts (system-wide known host keys), and /etc/ssh/sshrc (commands executed on login). It also covers the exit status of the ssh command and lists related utilities and standards.