linuxµÄsshdÆô¶¯Ê§°Ü
¹À¼ÆÊDZ»¹¥»÷ÁË£¬¹ý¸ö¼ÙÆÚssh¾ÍÁ¬½Ó²»ÉÏÁË£¬Ô¶³ÌÁ¬½ÓÌáʾ network refused¡£Ö»ÄÜÅܵ½»ú·¿¿´¸ö¾¿¾¹£¬Ê×ÏÈÓôó¼ÒµÄÐ޸ķ½Ê½£º
LinuxÏÂSSHĬÈÏ22¶Ë¿ÚµÄÐ޸ķ½·¨ÈçÏÂ:
NO 1£º
01¼ÙÈçÒª¸ÄSSHµÄĬÈ϶˿ڣ¨22£©£¬ÄÇôÄãÖ»ÒªÐ޸ģº/etc/ssh/sshd_configÖÐPort 22£¬ÕâÀï°Ñ22¸Ä³É×Ô¼ºÒªÉèµÄ¶Ë¿Ú¾ÍÐÐÁË£¬²»¹ýǧÍò±ðÉèºÍÏÖÒÑÓеĶ˿ÚÏàͬŶ£¬ÒÔ·ÀÔì³Éδ֪ºó¹û¡£
02¼ÙÈçÒªÏÞÖÆSSHµÇ½µÄIP£¬ÄÇô¿ÉÒÔÈçÏÂ×ö£º
ÏÈ£ºÐÞ¸Ä/etc/hosts.deny£¬ÔÚÆäÖмÓÈësshd:ALL
È»ºó£ºÐ޸ģº/etc/hosts.allow£¬ÔÚÆäÖнøÐÐÈçÏÂÉèÖãºsshd:192.168.0.241
ÕâÑù¾Í¿ÉÒÔÏÞÖÆÖ»ÓÐ192.168.0.241µÄIPͨ¹ýSSHµÇ½ÉÏLINUX»úÆ÷ÁË¡£µ±È»ÔÚ×öΪ·þÎñÆ÷·½Ã棬ÎÒ¶¼²»×°gnomeºÍKDEµÄ£¬¶øÇҺܶණ¶«¶¼²»×°£¬ÕâÑùÔö¼Ó°²È«ÏµÊý¡£
NO 2£º
Ê×ÏÈÐÞ¸ÄÅäÖÃÎļþ
vi /etc/ssh/sshd_config
ÕÒµ½#Port 22Ò»¶Î£¬ÕâÀïÊDZêʶĬÈÏʹÓÃ22¶Ë¿Ú£¬ÐÞ¸ÄΪÈçÏ£º
Port 22
Port 2222
È»ºó±£´æÍ˳ö
Ö´ÐÐ/etc/init.d/sshd restart
ÕâÑùSSH¶Ë¿Ú½«Í¬Ê±¹¤×÷Óë22ºÍ999ÉÏ¡£
ÏÖÔڱ༷À»ðǽÅäÖãºvi /etc/sysconfig/iptables
ÆôÓÃ999¶Ë¿Ú¡£
Ö´ÐÐ/etc/init.d/iptables restart
ÏÖÔÚÇëʹÓÃssh¹¤¾ßÁ¬½Ó999¶Ë¿Ú£¬À´²âÊÔÊÇ·ñ³É¹¦¡£Èç¹ûÁ¬½Ó³É¹¦ÁË£¬ÔòÔٴαà¼sshd_configµÄÉèÖ㬽«Àï±ßµÄPort22ɾ³ý£¬¼´¿É¡£
Ö®ËùÒÔÏÈÉèÖóÉÁ½¸ö¶Ë¿Ú£¬²âÊԳɹ¦ºóÔٹرÕÒ»¸ö¶Ë¿Ú£¬ÊÇΪÁË·½Ê½ÔÚÐÞ¸ÄconfµÄ¹ý³ÌÖУ¬ÍòÒ»³öÏÖµôÏß¡¢¶ÏÍø¡¢Îó²Ù×÷µÈδ֪Çé¿öʱºò£¬»¹ÄÜͨ¹ýÁíÍâÒ»¸ö¶Ë¿ÚÁ¬½ÓÉÏÈ¥µ÷ÊÔÒÔÃâ·¢ÉúÁ¬½Ó²»ÉϱØÐëÅÉÈËÈ¥»ú·¿£¬µ¼ÖÂÎÊÌâ¸ü¼Ó¸´ÔÓÂé·³¡£
ÎÒ²ÉÓõڶþÖÖ·½Ê½£¬È»ºóÖØÆô£¬½á¹ûºÜ²»ÐÒÆô¶¯Ê§°Ü£¬Ìáʾ£º
Æô¶¯£ºsshd:Missing privilege separation directory:/var/empty/sshd [ʧ°Ü]
ÌáʾµÄ´ó¸ÅÒâ˼Ӧ¸Ã¾ÍÊÇȨÏÞµÄÎÊÌâ¡£
¼ì²éÁËÏÂ/var/emptyÖÐemptyÎļþ¼ÐȨÏÞ£¬°ÑËü
root@localhost># chown root.root /var/empty
¸Ä±äȨÏÞ³ÊÏÖÐÎʽ
drwxr-xr-x 2 root root empty
(ÍøÂçÉϵÄÎÄÕÂÌáʾemtpyÎļþ¼ÐÏÂÓ¦¸ÃÊÇûÓж«Î÷µÄ£¬ËùÒÔ)ÎÒÏëÏÖÔÚûÓÐÎÊÌâÁË£¬ÖØÆô
root@localhost># /etc/init.d/sshd restart
½á¹ûÆô¶¯Ê§°Ü£¬²éÕÒ/var/emptyÎļþ¼ÐÄÚÈÝ£¬ÏÔʾֻÓÐx.pidÎļþ£¬µ«Ã»ÓÐsshd£¬ÊÔ×Å
root@localhost># mkdir sshd
È»ºóÖØÆôsshd·þÎñ£¬ÎÊÌâ½â¾ö.
root@localhost># nmap -v target.example.com
¼ì²éÏÂÊDz»ÊDZ¾µØ¶Ë¿ÚÖÐssh¶Ë¿Ú¿ªÁË¡£
¾ÍÕâÀïÎÊÌ⣬°ÑÎÒÓôÃÆÁË°ëÌ죬¶øÇÒÍøÂçÉϵĻ¹ÕÒ²»µ½£¬
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
1. Two methods to construct the cluster of servers
(1). DNS based load balancing cluster
DNS load balancing is probably the simplest method to build network
service cluster. It uses Domain Name System to distribute requests to
different servers through resolving the domain name to different IP
......
×÷Õߣº51cto
http://www.ccw.com.cn 2009-02-27 11:06:03
µ±Äã¶Ô±ðÈË˵£¬“ÎÒÒªÂòÁ¾³µ¡£”ËûÂíÉϾͻáÎÊÄ㣺“ʲô³µ£¿”¸£ÌØ¡¢·áÌï¡¢»¹ÊDZ¾ÌÊÇË«ÃÅÅܳµ¡¢Ð¡½Î³µ¡¢»¹ÊÇÃæ°ü³µ£¿µ±È»£¬»¹ÓÐÆäËûÀàËƵÄÎÊÌâ¡£
ͬÑù£¬Èç¹ûÄã˵“ÎÒÏë°²×°Linux£¡”Äã»á±»Îʵ½Í¬ÑùµÄÎÊÌ⣺ÄĸöLinu ......