|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Valentin Nechayev 2:5020/400 27 Aug 2002 16:16:31 To : Victor Wagner Subject : Re: icq client and socks5 -------------------------------------------------------------------------------- >>> Victor Wagner wrote: VW> Работает. Hо не во всех случаях. Есть такая вещь как VW> HostBasedAuthentication. Если ее использовать, то требуется VW> чтобы сервер знал, VW> что сообщенному клиентом ssh ИМЕHИ пользователя можно верить. В качестве VW> доказательства того, что бинарник не похакан вызывающим юзером VW> и принадлежит руту, принимается тот факт что бинарник этот suid root, VW> и имеет право прибиндиться к привелигированному (<1024) порту. Hеправда, Витус. Это для того, чтобы прочесть private host key. Цитаты из манов openssh: [...] The second authentication method is the rhosts or hosts.equiv method com- bined with RSA-based host authentication. It means that if the login would be permitted by $HOME/.rhosts, $HOME/.shosts, /etc/hosts.equiv, or /etc/ssh/shosts.equiv, and if additionally the server can verify the client's host key (see /etc/ssh/ssh_known_hosts and $HOME/.ssh/known_hosts in the FILES section), only then login is permit- ted. This authentication method closes security holes due to IP spoof- ing, DNS spoofing and routing spoofing. [...] /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key These three files contain the private parts of the host keys and are used for RhostsRSAAuthentication and HostbasedAuthentication. If the protocol version 1 RhostsRSAAuthentication method is used, ssh must be setuid root, since the host key is readable only by root. For protocol version 2, ssh uses ssh-keysign(8) to access the host keys for HostbasedAuthentication. This eliminates the requirement that ssh be setuid root when that authentication method is used. By default ssh is not setuid root. Аналогично из финского ssh2: $HOME/.ssh2/knownhosts/xxxxyyyy.pub These are the public hostkeys of hosts that a user wants to log from using "hostbased"-authentication (equivalent with ssh1's RhostsRSAAuthentication). Порт менее 1024 сейчас для этих целей ssh'ем не используется. /netch --- ifmail v.2.15dev5 * Origin: Dark side of coredump (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/736848729f06.html, оценка из 5, голосов 10
|