From b34520c890611c974523e1a514835929bf1833d6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 8 Dec 2024 22:06:47 +0100 Subject: [PATCH 1/2] ssh to android --- distros/android/ssh_to_phone.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 distros/android/ssh_to_phone.md diff --git a/distros/android/ssh_to_phone.md b/distros/android/ssh_to_phone.md new file mode 100644 index 0000000..081e2a1 --- /dev/null +++ b/distros/android/ssh_to_phone.md @@ -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` + From 98ffbe660aa434354f22f8e414201fdf3cdbd7d6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 15 Dec 2024 23:18:11 +0100 Subject: [PATCH 2/2] remove old splint index --- _index.md | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 _index.md diff --git a/_index.md b/_index.md deleted file mode 100644 index e6b1676..0000000 --- a/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Linux Knowledge Base" ---- - -{{< ticks >}} -{{< /ticks >}}