Termux第一篇之ssh使用
0.下載termux
1.安裝ssh等軟體
# apt update //首次必須執行
# apt install openssh emacs nmap python-dev clang
2.配置ssh
# ssh-keygen //pc端執行
注意:拷貝pc端~/.ssh/id_rsa.pub內容到android端~/.ssh/authorized_keys
# sshd & //android端執行
# chmod 715 ~/.ssh
# chmod 664 ~/.ssh/authorized_keys
# chmod 600 id_rsa id_rsa.pub
3./etc/profile
alias mx='ssh $(whoami)@10.100.29.37 -p 8022'
登陸:# mx
4.上傳下載檔案
# scp -P 8022 $(whoami)@10.100.29.37:~/test .
5.termux之快捷鍵
音量-鍵 + L 清除螢幕內容
音量-鍵 + C 終止當前操作
音量-鍵 + D 退出當前會話session
音量+鍵 + D Tab鍵(可自動補全命令或檔名)
音量+鍵 + W 方向鍵 上(可顯示前一條命令)
音量+鍵 + S 方向鍵 下(可顯示後一條命令)
音量+鍵 + A 方向鍵 左(可左移動游標)
音量+鍵 + D 方向鍵 右(可右移動游標)
音量+鍵 + Q 顯示或關閉擴充套件鍵(ESC、插入連結CTR、ALT、TAB、-、/、|以及左滑擴充套件鍵一欄可切換到全功能支援手機輸入法的輸入框)