安裝 Termux#
- 下載 termux-app(點此鏡像加速)
pkg install proot-distro
proot-distro install alpine
proot-distro login alpine
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
apk update && apk add openssh
快捷登錄#
host SER5
user root
hostname limour.top
Port 22
# PreferredAuthentications publickey
# IdentityFile ~/.ssh/id_rsa
nano ~/.ssh/config # 寫入上面的配置文件
ssh-keygen -t rsa
ssh-copy-id SER5
nano ~/.ssh/config # 將註釋取消掉
ssh SER5 # 即可直接登錄