前言

Sony Z5P 安装 Kali Nethunter
我居然发现自带的 SSH 功能无法使用

Termux 安装 OpenSSH

安装 Termux

更新 pkg 软件源

1
2
pkg update
pkg upgrade

安装 OpenSSH

1
pkg install openssh

OpenSSH 配置

设置 Termux 密码

1
passwd

启动 OpenSSH

  • Termux SSH 默认端口 8022
1
sshd

查看主机名称

1
whoami

查看 IP 地址

1
ifconfig

SSH 连接

Termux 连接

Android Shell 连接

  1. 进入 Android Shell 环境
1
su shell
  1. 进入 Android Root Shell 环境
1
2
3
4
# 已经 Android Shell 环境
su
# 直接进入 Android Root Shell 环境
su root

Kali 连接

  • Android Root Shell 环境
1
bootkali

参考 & 引用

https://blog.csdn.net/qq233325332/article/details/121534934
https://www.wangjun.dev/2023/11/from-shell-to-kali-in-nethunter/