×ðÁú¿­Ê±¹ÙÍøµÇ¼

centos7Ôõô¿ªÆôrootȨÏÞ

centos 7 ĬÈϽûÓà root ȨÏÞ £¬¿É°´ÒÔÏ°취¿ªÆô£ºÔÝʱ¿ªÆô£ºÖÕ¶ËÊäÈë “su root” £¬ÊäÈë root ÃÜÂë¡£ÓÀÊÀ¿ªÆô£º±à¼­ “/etc/ssh/sshd_config” £¬½« “permitrootlogin no” ¸ü¸ÄΪ “yes” £¬ÖØÆô ssh ЧÀÍ¡£

ÔõÑù¿ªÆô CentOS 7 ÖÐµÄ Root ȨÏÞ

CentOS 7 ĬÈϽûÓà root ȨÏÞ £¬ÎªÁËÇå¾²Ôµ¹ÊÔ­ÓÉ¡£ÈôÊÇÄúÐèÒªÔÝʱ»òÓÀÊÀ¿ªÆô root ȨÏÞ £¬¿ÉÒÔʹÓÃÒÔÏ°취£º

ÔÝʱ¿ªÆô root ȨÏÞ

ÔÚÖÕ¶ËÖÐÊäÈëÒÔÏÂÏÂÁ

su root

µÇ¼ºó¸´ÖÆ

ÊäÈë root ÃÜÂë¡£

Íê³Éºó £¬Äú½«»ñµÃ root ȨÏÞ £¬ÏÂÁîÌáÐÑ·û»á±äΪ #¡£

Íê³ÉʹÃüºó £¬Ê¹Óà exit ÏÂÁîÍ˳ö root ȨÏÞ¡£

ÓÀÊÀ¿ªÆô root ȨÏÞ

±à¼­ /etc/ssh/sshd_config Îļþ£º

vi /etc/ssh/sshd_config

µÇ¼ºó¸´ÖÆ

ÕÒµ½ÒÔÏÂÐУº

PermitRootLogin no

µÇ¼ºó¸´ÖÆ

½« no ¸ü¸ÄΪ yes¡£

ÉúÑIJ¢¹Ø±ÕÎļþ¡£

ÖØÆô SSH ЧÀÍ£º

systemctl restart sshd

µÇ¼ºó¸´ÖÆ

ÏÖÔÚ £¬Äú¿ÉÒÔʹÓà root Óû§ÃûºÍÃÜÂëͨ¹ý SSH ÅþÁ¬µ½ÏµÍ³¡£×¢ÖØ£º³öÓÚÇå¾²Ôµ¹ÊÔ­ÓÉ £¬Ç¿ÁÒ½¨ÒéÄú½öÔÚÐèҪʱ²ÅÆôÓà root ȨÏÞ £¬²¢ÇÒÔÚÍê³ÉºóÓ¦½ûÓà root ȨÏÞ¡£

ÒÔÉϾÍÊÇcentos7Ôõô¿ªÆôrootȨÏÞµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ