如何连接ssh以及使用root权限

angel0726 2020-07-18 20:14:35 浏览次数:

root@localhost:/home# sudo cat /proc/version
bash: sudo:未找到命令
root@localhost:/home# su cat /proc/version
su: user cat does not exist

使用sudo与su都不可以

root@localhost:/home# top
6404 /data/data/com.aidlux/files/usr/bin/bash -l
7184 aidboot --link2symlink -0 -r debian-fs -b /dev -b /proc -b debian-fs/root:/dev/shm -b /data/data/com.aidlux/files/home/.keyboard:/root/.keyboard -b /data/data/com.aidlux/files/home/.termux:/root/.Font_color -b /sdcard -w /root /usr/bin/env -i HOME=/root PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games TERM=xterm-256color LANG=C.UTF-8 /bin/bash --login
7186 python2 .startx
7187 /bin/bash --login
7188 sshd
7204 python /root/.startssh

ssh服务打开了,但是连接时候总是密码有问题。重新设置密码也是有问题

root@localhost:/home# ssh root@192.168.124.16 -p 8022
root@192.168.124.16's password:
Permission denied, please try again.
root@192.168.124.16's password:
Permission denied, please try again.
root@192.168.124.16's password:
root@192.168.124.16: Permission denied (publickey,password,keyboard-interactive).

root@localhost:/home# passwd
新的 密码:1234

重新输入新的 密码:1234

passwd:已成功更新密码
root@localhost:/home# ssh root@192.168.124.16 -p 8022
root@192.168.124.16's password:
Permission denied, please try again.
root@192.168.124.16's password:
Permission denied, please try again.
root@192.168.124.16's password:
root@192.168.124.16: Permission denied (publickey,password,keyboard-interactive).