how to login to phone
- install this app:
SimpleSSHD.apk
, that is an open source- create directory called
ssh
in your android at:/storage/emulated/0/.ssh/
- SimpleSSHD.apk: change
Home Directory -> /storage/emulated/0
- SimpleSSHD.apk: change
SSH PATH -> /storage/emulated/0/.ssh
- get ip: the
ip
is showing in yourapk
like192.168.43.1
- port the default is
2222
- default password should shown in
app
- SimpleSSHD.apk: change
- create directory called
- fix error:
- in android: remove old files in
/storage/emulated/0/.ssh/*
- in linux: remove old lines from
~/.ssh/known_hosts
like:github.com ssh-ed25519 AAAAC3NzaC1lZ
- in android: remove old files in
$ cat ~/.ssh/id_rsa.pub |
ssh 192.168.43.1 -p 2222 "cat >> /storage/emulated/0/.ssh/authorized_keys"
How to mount termux by sshfs in linux
sshfs u0_a133@192.168.43.1:/data/data/com.termux/files/home/ -p 8022 /mnt/termux
terminal (local): download file from remote
$ scp -P8022 username@remote:/file/to/send /where/to/put
terminal (local): upload file to remote
$ scp -P8022 /file/to/send username@remote:/where/to/put
terminal (remote): download file from local
# TODO:
terminal (remote): upload file to local
# TODO:
To use vpn by ssh
usepremiusa2.vpnjantit.com:22
my number in voip:+1 442 946 2073
- testing
$ dos2unix usa2.vpnjantit.com/usa2.vpnjantit-tcp-8080.ovpn
$ sudo cp /usr/share/examples/openvpn /etc -r
$ sudo vim /etc/ssl/openssl.cnf
$ openssl ca -config openssl.cnf -extensions server_cert -notext -md sha256 -in csr.pem -out cert.pem
$ openssl ca -config /etc/ssl/openssl.cnf -extensions server_cert -notext -md sha256 -in csr.pem -out cert.pem
$ doas update-ca-certificates
$ sudo ln -s /etc/sv/ufw /var/service
$ doas openvpn --config u8080.ovpn --data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-128-CBC
- file.ovpn
In any blocks inside this config file, replace with
auth-user-pass auth.txt
script-security 2
remote-cert-tls server
- USAGE:
$ sudo openvpn --config u8080.ovpn --data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-128-CBC