diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-15 11:33:56 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-15 11:33:56 +1100 |
commit | d8702e865d1e0107d50dc0296b22dc0b788d5a0a (patch) | |
tree | 8be7891577f589f573adb9eed1a23ec0a9d835d9 /sshd.8 | |
parent | c8f61cf1996a7374de465d8e2fda93dec34364a2 (diff) |
- jmc@cvs.openbsd.org 2006/02/13 11:27:25
[sshd.8]
sort FILES and use a -compact list;
Diffstat (limited to 'sshd.8')
-rw-r--r-- | sshd.8 | 284 |
1 files changed, 154 insertions, 130 deletions
@@ -34,7 +34,7 @@ | |||
34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
36 | .\" | 36 | .\" |
37 | .\" $OpenBSD: sshd.8,v 1.222 2006/02/13 11:08:43 jmc Exp $ | 37 | .\" $OpenBSD: sshd.8,v 1.223 2006/02/13 11:27:25 jmc Exp $ |
38 | .Dd September 25, 1999 | 38 | .Dd September 25, 1999 |
39 | .Dt SSHD 8 | 39 | .Dt SSHD 8 |
40 | .Os | 40 | .Os |
@@ -591,77 +591,8 @@ cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | |||
591 | AAAA1234.....= | 591 | AAAA1234.....= |
592 | .Ed | 592 | .Ed |
593 | .Sh FILES | 593 | .Sh FILES |
594 | .Bl -tag -width Ds | 594 | .Bl -tag -width Ds -compact |
595 | .It Pa /etc/ssh/sshd_config | 595 | .It ~/.hushlogin |
596 | Contains configuration data for | ||
597 | .Nm sshd . | ||
598 | The file format and configuration options are described in | ||
599 | .Xr sshd_config 5 . | ||
600 | .It Pa /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key | ||
601 | These three files contain the private parts of the host keys. | ||
602 | These files should only be owned by root, readable only by root, and not | ||
603 | accessible to others. | ||
604 | Note that | ||
605 | .Nm | ||
606 | does not start if this file is group/world-accessible. | ||
607 | .It Pa /etc/ssh/ssh_host_key.pub, /etc/ssh/ssh_host_dsa_key.pub, /etc/ssh/ssh_host_rsa_key.pub | ||
608 | These three files contain the public parts of the host keys. | ||
609 | These files should be world-readable but writable only by | ||
610 | root. | ||
611 | Their contents should match the respective private parts. | ||
612 | These files are not | ||
613 | really used for anything; they are provided for the convenience of | ||
614 | the user so their contents can be copied to known hosts files. | ||
615 | These files are created using | ||
616 | .Xr ssh-keygen 1 . | ||
617 | .It Pa /etc/moduli | ||
618 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group Exchange". | ||
619 | The file format is described in | ||
620 | .Xr moduli 5 . | ||
621 | .It Pa /var/empty | ||
622 | .Xr chroot 2 | ||
623 | directory used by | ||
624 | .Nm | ||
625 | during privilege separation in the pre-authentication phase. | ||
626 | The directory should not contain any files and must be owned by root | ||
627 | and not group or world-writable. | ||
628 | .It Pa /var/run/sshd.pid | ||
629 | Contains the process ID of the | ||
630 | .Nm | ||
631 | listening for connections (if there are several daemons running | ||
632 | concurrently for different ports, this contains the process ID of the one | ||
633 | started last). | ||
634 | The content of this file is not sensitive; it can be world-readable. | ||
635 | .It Pa ~/.ssh/authorized_keys | ||
636 | Lists the public keys (RSA or DSA) that can be used to log into the user's account. | ||
637 | This file must be readable by root (which may on some machines imply | ||
638 | it being world-readable if the user's home directory resides on an NFS | ||
639 | volume). | ||
640 | It is recommended that it not be accessible by others. | ||
641 | The format of this file is described above. | ||
642 | Users will place the contents of their | ||
643 | .Pa identity.pub , | ||
644 | .Pa id_dsa.pub | ||
645 | and/or | ||
646 | .Pa id_rsa.pub | ||
647 | files into this file, as described in | ||
648 | .Xr ssh-keygen 1 . | ||
649 | .It Pa "/etc/ssh/ssh_known_hosts", "~/.ssh/known_hosts" | ||
650 | These files are consulted when using rhosts with RSA host | ||
651 | authentication or protocol version 2 hostbased authentication | ||
652 | to check the public key of the host. | ||
653 | The key must be listed in one of these files to be accepted. | ||
654 | The client uses the same files | ||
655 | to verify that it is connecting to the correct remote host. | ||
656 | These files should be writable only by root/the owner. | ||
657 | .Pa /etc/ssh/ssh_known_hosts | ||
658 | should be world-readable, and | ||
659 | .Pa ~/.ssh/known_hosts | ||
660 | can, but need not be, world-readable. | ||
661 | .It Pa /etc/motd | ||
662 | See | ||
663 | .Xr motd 5 . | ||
664 | .It Pa ~/.hushlogin | ||
665 | This file is used to suppress printing the last login time and | 596 | This file is used to suppress printing the last login time and |
666 | .Pa /etc/motd , | 597 | .Pa /etc/motd , |
667 | if | 598 | if |
@@ -672,19 +603,8 @@ respectively, | |||
672 | are enabled. | 603 | are enabled. |
673 | It does not suppress printing of the banner specified by | 604 | It does not suppress printing of the banner specified by |
674 | .Cm Banner . | 605 | .Cm Banner . |
675 | .It Pa /etc/nologin | 606 | .Pp |
676 | If this file exists, | 607 | .It ~/.rhosts |
677 | .Nm | ||
678 | refuses to let anyone except root log in. | ||
679 | The contents of the file | ||
680 | are displayed to anyone trying to log in, and non-root connections are | ||
681 | refused. | ||
682 | The file should be world-readable. | ||
683 | .It Pa /etc/hosts.allow, /etc/hosts.deny | ||
684 | Access controls that should be enforced by tcp-wrappers are defined here. | ||
685 | Further details are described in | ||
686 | .Xr hosts_access 5 . | ||
687 | .It Pa ~/.rhosts | ||
688 | This file is used during | 608 | This file is used during |
689 | .Cm RhostsRSAAuthentication | 609 | .Cm RhostsRSAAuthentication |
690 | and | 610 | and |
@@ -702,56 +622,30 @@ It is also possible to use netgroups in the file. | |||
702 | Either host or user | 622 | Either host or user |
703 | name may be of the form +@groupname to specify all hosts or all users | 623 | name may be of the form +@groupname to specify all hosts or all users |
704 | in the group. | 624 | in the group. |
705 | .It Pa ~/.shosts | 625 | .Pp |
626 | .It ~/.shosts | ||
706 | For ssh, | 627 | For ssh, |
707 | this file is exactly the same as for | 628 | this file is exactly the same as for |
708 | .Pa .rhosts . | 629 | .Pa .rhosts . |
709 | However, this file is | 630 | However, this file is |
710 | not used by rlogin and rshd, so using this permits access using SSH only. | 631 | not used by rlogin and rshd, so using this permits access using SSH only. |
711 | .It Pa /etc/hosts.equiv | ||
712 | This file is used during | ||
713 | .Cm RhostsRSAAuthentication | ||
714 | and | ||
715 | .Cm HostbasedAuthentication | ||
716 | authentication. | ||
717 | In the simplest form, this file contains host names, one per line. | ||
718 | Users on | ||
719 | those hosts are permitted to log in without a password, provided they | ||
720 | have the same user name on both machines. | ||
721 | The host name may also be | ||
722 | followed by a user name; such users are permitted to log in as | ||
723 | .Em any | ||
724 | user on this machine (except root). | ||
725 | Additionally, the syntax | ||
726 | .Dq +@group | ||
727 | can be used to specify netgroups. | ||
728 | Negated entries start with | ||
729 | .Ql \&- . | ||
730 | .Pp | ||
731 | If the client host/user is successfully matched in this file, login is | ||
732 | automatically permitted provided the client and server user names are the | ||
733 | same. | ||
734 | Additionally, successful client host key authentication is required. | ||
735 | This file must be writable only by root; it is recommended | ||
736 | that it be world-readable. | ||
737 | .Pp | 632 | .Pp |
738 | .Sy "Warning: It is almost never a good idea to use user names in" | 633 | .It ~/.ssh/authorized_keys |
739 | .Pa hosts.equiv . | 634 | Lists the public keys (RSA or DSA) that can be used to log into the user's account. |
740 | Beware that it really means that the named user(s) can log in as | 635 | This file must be readable by root (which may on some machines imply |
741 | .Em anybody , | 636 | it being world-readable if the user's home directory resides on an NFS |
742 | which includes bin, daemon, adm, and other accounts that own critical | 637 | volume). |
743 | binaries and directories. | 638 | It is recommended that it not be accessible by others. |
744 | Using a user name practically grants the user root access. | 639 | The format of this file is described above. |
745 | The only valid use for user names that I can think | 640 | Users will place the contents of their |
746 | of is in negative entries. | 641 | .Pa identity.pub , |
642 | .Pa id_dsa.pub | ||
643 | and/or | ||
644 | .Pa id_rsa.pub | ||
645 | files into this file, as described in | ||
646 | .Xr ssh-keygen 1 . | ||
747 | .Pp | 647 | .Pp |
748 | Note that this warning also applies to rsh/rlogin. | 648 | .It ~/.ssh/environment |
749 | .It Pa /etc/shosts.equiv | ||
750 | This is processed exactly as | ||
751 | .Pa /etc/hosts.equiv . | ||
752 | However, this file may be useful in environments that want to run both | ||
753 | rsh/rlogin and ssh. | ||
754 | .It Pa ~/.ssh/environment | ||
755 | This file is read into the environment at login (if it exists). | 649 | This file is read into the environment at login (if it exists). |
756 | It can only contain empty lines, comment lines (that start with | 650 | It can only contain empty lines, comment lines (that start with |
757 | .Ql # ) , | 651 | .Ql # ) , |
@@ -762,7 +656,22 @@ Environment processing is disabled by default and is | |||
762 | controlled via the | 656 | controlled via the |
763 | .Cm PermitUserEnvironment | 657 | .Cm PermitUserEnvironment |
764 | option. | 658 | option. |
765 | .It Pa ~/.ssh/rc | 659 | .Pp |
660 | .It ~/.ssh/known_hosts | ||
661 | .It /etc/ssh/ssh_known_hosts | ||
662 | These files are consulted when using rhosts with RSA host | ||
663 | authentication or protocol version 2 hostbased authentication | ||
664 | to check the public key of the host. | ||
665 | The key must be listed in one of these files to be accepted. | ||
666 | The client uses the same files | ||
667 | to verify that it is connecting to the correct remote host. | ||
668 | These files should be writable only by root/the owner. | ||
669 | .Pa /etc/ssh/ssh_known_hosts | ||
670 | should be world-readable, and | ||
671 | .Pa ~/.ssh/known_hosts | ||
672 | can, but need not be, world-readable. | ||
673 | .Pp | ||
674 | .It ~/.ssh/rc | ||
766 | If this file exists, it is run with | 675 | If this file exists, it is run with |
767 | .Pa /bin/sh | 676 | .Pa /bin/sh |
768 | after reading the | 677 | after reading the |
@@ -805,12 +714,127 @@ does not exist either, xauth is used to add the cookie. | |||
805 | .Pp | 714 | .Pp |
806 | This file should be writable only by the user, and need not be | 715 | This file should be writable only by the user, and need not be |
807 | readable by anyone else. | 716 | readable by anyone else. |
808 | .It Pa /etc/ssh/sshrc | 717 | .Pp |
718 | .It /etc/hosts.allow | ||
719 | .It /etc/hosts.deny | ||
720 | Access controls that should be enforced by tcp-wrappers are defined here. | ||
721 | Further details are described in | ||
722 | .Xr hosts_access 5 . | ||
723 | .Pp | ||
724 | .It /etc/hosts.equiv | ||
725 | This file is used during | ||
726 | .Cm RhostsRSAAuthentication | ||
727 | and | ||
728 | .Cm HostbasedAuthentication | ||
729 | authentication. | ||
730 | In the simplest form, this file contains host names, one per line. | ||
731 | Users on | ||
732 | those hosts are permitted to log in without a password, provided they | ||
733 | have the same user name on both machines. | ||
734 | The host name may also be | ||
735 | followed by a user name; such users are permitted to log in as | ||
736 | .Em any | ||
737 | user on this machine (except root). | ||
738 | Additionally, the syntax | ||
739 | .Dq +@group | ||
740 | can be used to specify netgroups. | ||
741 | Negated entries start with | ||
742 | .Ql \&- . | ||
743 | .Pp | ||
744 | If the client host/user is successfully matched in this file, login is | ||
745 | automatically permitted provided the client and server user names are the | ||
746 | same. | ||
747 | Additionally, successful client host key authentication is required. | ||
748 | This file must be writable only by root; it is recommended | ||
749 | that it be world-readable. | ||
750 | .Pp | ||
751 | .Sy "Warning: It is almost never a good idea to use user names in" | ||
752 | .Pa hosts.equiv . | ||
753 | Beware that it really means that the named user(s) can log in as | ||
754 | .Em anybody , | ||
755 | which includes bin, daemon, adm, and other accounts that own critical | ||
756 | binaries and directories. | ||
757 | Using a user name practically grants the user root access. | ||
758 | The only valid use for user names that I can think | ||
759 | of is in negative entries. | ||
760 | .Pp | ||
761 | Note that this warning also applies to rsh/rlogin. | ||
762 | .Pp | ||
763 | .It /etc/moduli | ||
764 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group Exchange". | ||
765 | The file format is described in | ||
766 | .Xr moduli 5 . | ||
767 | .Pp | ||
768 | .It /etc/motd | ||
769 | See | ||
770 | .Xr motd 5 . | ||
771 | .Pp | ||
772 | .It /etc/nologin | ||
773 | If this file exists, | ||
774 | .Nm | ||
775 | refuses to let anyone except root log in. | ||
776 | The contents of the file | ||
777 | are displayed to anyone trying to log in, and non-root connections are | ||
778 | refused. | ||
779 | The file should be world-readable. | ||
780 | .Pp | ||
781 | .It /etc/shosts.equiv | ||
782 | This is processed exactly as | ||
783 | .Pa /etc/hosts.equiv . | ||
784 | However, this file may be useful in environments that want to run both | ||
785 | rsh/rlogin and ssh. | ||
786 | .Pp | ||
787 | .It /etc/ssh/ssh_host_key | ||
788 | .It /etc/ssh/ssh_host_dsa_key | ||
789 | .It /etc/ssh/ssh_host_rsa_key | ||
790 | These three files contain the private parts of the host keys. | ||
791 | These files should only be owned by root, readable only by root, and not | ||
792 | accessible to others. | ||
793 | Note that | ||
794 | .Nm | ||
795 | does not start if this file is group/world-accessible. | ||
796 | .Pp | ||
797 | .It /etc/ssh/ssh_host_key.pub | ||
798 | .It /etc/ssh/ssh_host_dsa_key.pub | ||
799 | .It /etc/ssh/ssh_host_rsa_key.pub | ||
800 | These three files contain the public parts of the host keys. | ||
801 | These files should be world-readable but writable only by | ||
802 | root. | ||
803 | Their contents should match the respective private parts. | ||
804 | These files are not | ||
805 | really used for anything; they are provided for the convenience of | ||
806 | the user so their contents can be copied to known hosts files. | ||
807 | These files are created using | ||
808 | .Xr ssh-keygen 1 . | ||
809 | .Pp | ||
810 | .It /etc/ssh/sshd_config | ||
811 | Contains configuration data for | ||
812 | .Nm sshd . | ||
813 | The file format and configuration options are described in | ||
814 | .Xr sshd_config 5 . | ||
815 | .Pp | ||
816 | .It /etc/ssh/sshrc | ||
809 | Like | 817 | Like |
810 | .Pa ~/.ssh/rc . | 818 | .Pa ~/.ssh/rc . |
811 | This can be used to specify | 819 | This can be used to specify |
812 | machine-specific login-time initializations globally. | 820 | machine-specific login-time initializations globally. |
813 | This file should be writable only by root, and should be world-readable. | 821 | This file should be writable only by root, and should be world-readable. |
822 | .Pp | ||
823 | .It /var/empty | ||
824 | .Xr chroot 2 | ||
825 | directory used by | ||
826 | .Nm | ||
827 | during privilege separation in the pre-authentication phase. | ||
828 | The directory should not contain any files and must be owned by root | ||
829 | and not group or world-writable. | ||
830 | .Pp | ||
831 | .It /var/run/sshd.pid | ||
832 | Contains the process ID of the | ||
833 | .Nm | ||
834 | listening for connections (if there are several daemons running | ||
835 | concurrently for different ports, this contains the process ID of the one | ||
836 | started last). | ||
837 | The content of this file is not sensitive; it can be world-readable. | ||
814 | .El | 838 | .El |
815 | .Sh SEE ALSO | 839 | .Sh SEE ALSO |
816 | .Xr scp 1 , | 840 | .Xr scp 1 , |