群晖root密码详解(群晖 root密码)

群晖root密码详解(群晖 root密码)该 群晖 NAS 教程 获取 root 密码 是由 guoxiachuany 上传分享 文档一共 8 页 该文档可以免费在线阅读 需要了解更多关于 群晖 NAS 教程 获取 root 密码 的内容 可以使用淘豆网的站内搜索功能 选择自己适合的文档 以下文字是截取该文章内的部分文字 如需要获得完整电子版 请下载此文档到您的设备 方便您编辑和打印 一 控制面板 终端机和 SNMP 里 开启 SSH 功能 二 登陆群晖的 SSH 用系统默认用户登陆 我这里是 admin 所以我输入以下命令



该【群晖NAS教程-获取root密码 】是由【guoxiachuanyue002】上传分享,文档一共【8】页,该文档可以免费在线阅读,需要了解更多关于【群晖NAS教程-获取root密码 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。一、控制面板—-终端机和SNMP里,开启SSH功能。


二、登陆群晖的SSH,用系统默认用户登陆,我这里是admin,所以我输入以下命令,admin和IP地址修改为你的


admin?AAA:/£sudo-i


Lsistlogin:TueSep418:16:03ontt/5000


ectorv


三、登陆后输入以下命令切换至root账号,这时还需在输入一次你的群晖登陆密码


sudo-i


廿包电—@—80x24


VEEdeMac^Pro-2:-veeSsshadmin{?,


admin^+:


Couldnetchdixtohomedir&ctofy/var/services/hemes/adminlNosuchfileotdir


Lastlogin:Td&Sep4lfl:16:03onttyS00C


VEEdeMac~PrO"2:™veeSsslhadmin^iek10^{?,L72,spassword:


Cojldnotchdirtohomedirectory/var/services/homes/admirnNoBjchfileordirectory


adm±@AAA:/$«udo-i


WetrustyouhavereceivedtheusuallecturefromthelocalSystem


Administrator>Itjsjallyboilsdowntothesethreethings:


#1)Respecttheprivacyofothers,


#2)Thinkbeforeyoutypm.


#3)Withgreatpowercomesgreatresponsibility.


Passwordi|


四、输入以下命令进入到ssh的目录


cd/etc/ssh


•Ivee—@10,—8324


Lastlogin:TueSep41S:16;03anttys000


ZEEdeNac-Pxo-2:~vee$sshadmin^ie»10+10»172


@10172'spassword:


Couldnotchdiirtohomedirectory/var/services/homes/admin:NosuchfileordirectaiyadminflAAA:/Ssudo-i


WetrustyouhavereceivedtheusuallecturmfromthelocalSystem


Administrator*TtusumLlyboilsdowntothesethreetKings:


#1)Respecttheprivacyofothers,


#2)Thinkbeforeyoutype>


#3]Withgreatpowercomesgreatresponsibilitjr-


Password:


rootgAAr:"#cd/etc/ssh


五、给sshd_config赋予755的权限chmod755sshd_config


vee一@10,


Lastlogin:TueSep410:16:03anttys960


VEEdeMac-Pro^Z;-vee$@10*10>10*172


3dmin(?l&,»1721spassword:


Couldnotchdirtohomedirectory/var/services/homes/admin:Nosuchfileordirectory


WetrustyouhavereceivedtheusuallecturefxomtheLocalSystemAdministrator^Itusuallyboilsdowntothesethreethings:


#1]Respecttheprivacyofotheis>


#2JThinkbeforeyoutype,


#3)Withgreatpowerconiesgreatresponsibility.


rootQAAA:cd/et“sshroottPAAAi/etG/ssh#cl-imod755sshd^canfig


六、修改config配置文件内容输入


vi/etc/ssh/sshd_config


*vee一@


Lastlogin:TueSep418J16:93onttysOOS


[VEEdeMac-Pro-Z:-vee$sshadmin(?


BdminOlO,IB«1G«1721spasswoxd:


Couldnotchdirtohomedirectory/var/servic&s/hom&s/admin:Nosuchfileordirectaiy


ladmin^AAA:/Ssudo~i


Wetxustyouhavereceivedthmu&uallecturefromthmlocalSystem


Administrator,Lrusuallyoailsdo^r»tothesethreethings:


#1】Respectthwpiivacyofethers.


#2)Thinkbeforeyoutype,


#3)Withgreatpowercomesgreatlesponsibility.


Password:


lroot(?AAA:"#cd/etc/ssh


root^AAA:/etc/ssh#|C;riniocl755EEhd—Gonfig


@AAA:/atc/ssh#vim/etc/ssh/sshd_canfig|


[“键进入编辑模式,找到


#PermitRootLoginprohibitpassword


vee一@10,


vee—@—80x24


#RekeyLimitdefaultnone


#Logging


#$/slogFacilityAuTH


#LcgLevelINFO


#Authentication


#PubkeyAuthmriticationyes


Thedefaultistocheckboth^sshi/


butthisisoverriddensoinstmllmtionswillonlycheck»ssh/authorized_key5#AutnorizedKeysFile,s£h/authorized_k&ys


#LoqimiGraceTime2m


#Authori?edPrincipalsFilenone


^AuithorizedKey^CDnunandnone—INSERT—


|PermitRootLoginprohibit-^password#StrictModesyes#MaxAuthTries6


#MaxSessions10


I更改为,注意前面的“#”不要


PermitRootLoginyes


vee—@—80x24


#RekeyLimitd&faultnene


Logging


#SyslogFacilitvAUTH


#LogLevelINFO


Authentic^tion;


#LoginGrac:电Time2m,


Perm!七丽0上1-朋:1|1yesffStrictMocesyes#MaxAuthTries6ffMaxSessicns10


#PubkeyAuthenticationyes


Theciefaultisto匚heckboth,ash//s2


butthisi&overridderisoinstallationswillonlycheck..ssh/auth&rized_keysSAjtharizedKeysFile*ssh/


#AuthorizedPrincipalsFilenene


^AutliQrisedlCeysCairinanclnone


—INSERT—


按“esc”键退出编辑模式,输入“:wq”保存


••ve&—ssh—80x24


#RekeyLimitdefaultnone


Logging


#SyslogFacilityAUTh


#L&gLevelINFO


Authentication:


#LoginGraceTime2m


Perm!tRoo七1-四:1|1yes


#StrictModes^es


#MaxAuthTries6


#MaxSessions10


#PubkeyAuthenticationyes


Thedefaultistocheckboth»ssh/&/s2


butthisisoverriddensoinstallationswillonlycheck,ssh/authorized_keysSAuthorizedKeysFile*ssh/autharized_keys


#ALithorizedPrincipalEFilenone


#Authori2edKe/5Connnandnone


七、重启群晖


Reboot


八、重启完成再次以系统默认账户登录群晖SSH,我这里是admin,所以我输入以下命令,admin和IP地址修改为你的


.


九、再次输入以下命令切换至root账号,这时还需在输入一次你的群晖登陆密码


sudo-i


•vee—-@—80x24


Lastlogin:TueSep41B:22:39onttys900


[VEEdeMac-Pro-2:-vee£sshadmin(?,172


admin?*'spassword:


Couldnotchdirtohomedirectory/var/servic&s/homes/admin:nosuchfileordirectorv


[adm±@AAA:/$sudo-i


Password:


vee一@10,


vee一@10,


十、输入下面命令修改root默认密码,vee改为你要设置的密码,回车没有任何提示即可


vee一@10,


admin^AAA:/ssudo-1


Pas^ward:


rootPAAA;


vee一@10,


vec—@10^—80x24


Lastlogin:TueSep418:22:39ontty£090


VEEdeMac-PrO'2:"veeSsshadminPl®.10h10172


,*5password:


Couldnotchdirtohomedirectory/var/services/homes/admin:Nosuchfileordir


[@AAA:■*#svnous&r一一setpwrootvee


卜一、这时再从新以root权限就可以登陆到ssh了,ip记得改为你群晖的ip哦。


转载原创文章请注明,转载自:VedioTalk-群晖|()


vee一@10,

今天的文章 群晖root密码详解(群晖 root密码)分享到此就结束了,感谢您的阅读。









































































































































































































































































































































































































































编程小号
上一篇 2026-03-24 08:46
下一篇 2026-03-24 08:57

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ri-ji/57616.html