電訊茶室's Archiver

角色 發表於 2013-9-15 08:45

【Raspberry Pi】——Raspian 怎样可以root login

在Raspberry Pi里,我们用的比较的OS是

Debian, 那么Raspberry Pi + Debian = Raspian

[url]http://www.raspbian.org/[/url]

Imaging可以下面的link download

[url]http://www.raspberrypi.org/downloads[/url]

安装后,做一般的setup,default login=pi,password = raspberry

怎样可以用root login:[code]pi@raspberrypi /etc/ssh $ sudo root
sudo: root: command not found
pi@raspberrypi /etc/ssh $ sudo su
root@raspberrypi:/etc/ssh# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@raspberrypi:/etc/ssh#
[/code]

角色 發表於 2016-9-7 17:48

关于上面的帖子,下面还有不错的信息。

[url]http://www.cnblogs.com/abel/p/3441175.html[/url]

edmond25 發表於 2016-9-8 10:48

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=35180&ptid=5852]1#[/url] [i]角色[/i] [/b]

用數碼證書更安全,把做出來的數碼證書放在 /root/.ssh 內,取消用密碼登錄,如果你登錄的 SSH client 有對應的數碼證書,user 輸入root,就自動登錄,就算hack 試password 也試不到,因為沒有數碼證書就馬上斷線,數碼證書只有你擁有,只要不流出,沒有人可登入你的 server,超級安全

請參考:
    [url]https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server[/url]

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.