請問一下
我現在只能用一個不是 root的權限登入到我的VPS...
但我想用root身分
xxx@xxx.com [~/.ssh]# su
-jailshell: /bin/su: Permission denied
ssh root@xxx.xxx.xxx.xxx
root@xxx.xxx.xxx.xxx: Permission denied (publickey).
請問我要怎麼用 root 身分登入到我的VPS?
要怎麼設置才對
請問一下
我現在只能用一個不是 root的權限登入到我的VPS...
但我想用root身分
xxx@xxx.com [~/.ssh]# su
-jailshell: /bin/su: Permission denied
ssh root@xxx.xxx.xxx.xxx
root@xxx.xxx.xxx.xxx: Permission denied (publickey).
請問我要怎麼用 root 身分登入到我的VPS?
要怎麼設置才對
修改
/etc/sudoers
文件,找到下面一行,在root下面添加一行,如下所示:修改完毕,现在可以用yourUserName帐号登录,然后用命令 sudo – ,即可获得root权限进行操作。