Compare commits
3 Commits
bbaee49831
...
d8af949846
Author | SHA1 | Date | |
---|---|---|---|
d8af949846 | |||
98ffbe660a | |||
b34520c890 |
@ -1,6 +0,0 @@
|
||||
---
|
||||
title: "Linux Knowledge Base"
|
||||
---
|
||||
|
||||
{{< ticks >}}
|
||||
{{< /ticks >}}
|
28
distros/android/ssh_to_phone.md
Normal file
28
distros/android/ssh_to_phone.md
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
title: "ssh to phone"
|
||||
tags: [ "networking", "ssh", "android" ]
|
||||
---
|
||||
|
||||
1. Install fdroid on phone.
|
||||
2. Install termux.
|
||||
3. Open fdroid, and run:
|
||||
|
||||
|
||||
```bash
|
||||
pkg upgrade
|
||||
pkg install busybox termux-services openssh openssh-sftp-server
|
||||
source $PREFIX/etc/profile.d/start-services.sh
|
||||
```
|
||||
|
||||
`openssh-sftp-server` will mount the phone's file-system, and show you some directories in `~/storage/`.
|
||||
|
||||
4. Copy your PC's ssh public key to the phone's downloads or somewhere, so you can see it in `~/storage/downloads`.
|
||||
5. On the phone:
|
||||
* `yes | ssh-keygen`
|
||||
* `cat $pubkey.pub >> ~/.ssh/authorized_hosts`.
|
||||
* Check its ip address with `ifconfig | grep broadcast`
|
||||
* Check the phone's username with with `whoami`
|
||||
* `sshd -D`
|
||||
6. On the PC:
|
||||
* `ssh -p 8022 -l $phone_username $phone_ip`
|
||||
|
15
networking/scraping/Copy_Website.md
Normal file
15
networking/scraping/Copy_Website.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: "Download Website"
|
||||
tags: [ "networking", "scraping" ]
|
||||
---
|
||||
|
||||
```bash
|
||||
domain=splint.rs
|
||||
mkdir $domain
|
||||
cd $domain
|
||||
wget --recursive --convert-links --backup-converted \
|
||||
--page-requisites --level=inf --adjust-extension \
|
||||
-U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" \
|
||||
-p --mirror --html-extension --convert-links \
|
||||
$domain
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user