admin管理员组

文章数量:1542784

最近ssh远程登录树莓派进行开发,有时候会出现pi用户权限不够的情况,就想用root用户ssh登录。

login as: pi
pi@172.26.30.12's password:
Linux RevPi21592 4.9.76-rt60-v7+ #1 SMP PREEMPT RT Fri, 28 Feb 2020 15:17:03

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Mar 24 15:46:16 2020 from 172.26.30.37
pi@RevPi21592:~ $

结果报错

login as: root
root@172.26.30.12's password:
Access denied
root@172.26.30.12's password:

于是决定记录下如何开启root的ssh权限

  • 在用pi登录ssh以后,切换到root用户,编辑/etc/ssh/sshd_config设置

在Authentication设置的部分,写入:PermitRootLogin yes, 保存

本文标签: 权限rootSSH