Update README.md
This commit is contained in:
parent
1ab3525e19
commit
4b8e14468d
1 changed files with 6 additions and 14 deletions
20
README.md
20
README.md
|
@ -28,31 +28,23 @@ On F-Droid :
|
||||||
Now let's connect with ssh from your computer !
|
Now let's connect with ssh from your computer !
|
||||||
It's not necessary but yeah, if you don't want to run every commands on the small screen of your phone, it's a must-have !
|
It's not necessary but yeah, if you don't want to run every commands on the small screen of your phone, it's a must-have !
|
||||||
|
|
||||||
7)
|
7) On Termux run :
|
||||||
On Termux run :
|
|
||||||
|
|
||||||
``ifconfig``
|
``ifconfig``
|
||||||
Search "inet" address (if your phone is connected on wifi it's often just after wlan0)
|
Search "inet" address (if your phone is connected on wifi it's often just after wlan0)
|
||||||
That's your phone private/local ip address (often start with 192.168) !
|
That's your phone private/local ip address (often start with 192.168) !
|
||||||
Note it somewhere it will be useful !
|
Note it somewhere it will be useful !
|
||||||
|
|
||||||
8)
|
8) run :
|
||||||
run :
|
``whoami`` (It's your username !) And also note the result somewhere
|
||||||
``whoami``
|
|
||||||
(It's your username !)
|
|
||||||
And also note the result somewhere
|
|
||||||
|
|
||||||
9)
|
9)
|
||||||
run :
|
run :
|
||||||
``sshd``
|
``sshd`` (To start an ssh server)
|
||||||
(To start an ssh server)
|
|
||||||
|
|
||||||
10)
|
10)
|
||||||
Go to your computer, and connect to your phone via ssh. On linux based system :
|
Go to your computer, and connect to your phone via ssh. On linux based system :
|
||||||
run :
|
run :
|
||||||
```
|
``ssh -p 8022 <username>@<local_ip>``
|
||||||
ssh -p 8022 <username>@<local_ip>
|
|
||||||
```
|
|
||||||
(username is the result of whoami, and you got local_ip by running ifconfig. And termux use 8022 port by default for none root user)
|
(username is the result of whoami, and you got local_ip by running ifconfig. And termux use 8022 port by default for none root user)
|
||||||
|
|
||||||
Setup some crappy password and here you go ! You can know control termux and your phone from your computer !
|
Setup some crappy password and here you go ! You can know control termux and your phone from your computer !
|
||||||
|
@ -62,7 +54,7 @@ Little advice : Create a small bash script to run this easily when needed
|
||||||
|
|
||||||
On
|
On
|
||||||
~/.termux/boot/start-sshd:
|
~/.termux/boot/start-sshd:
|
||||||
put :
|
create a file with :
|
||||||
```
|
```
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
#!/data/data/com.termux/files/usr/bin/sh
|
||||||
termux-wake-lock
|
termux-wake-lock
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue