General info#

Mobile and PC can be in any different networks, ssh is used for comms. OpenVPN is used for handy and secure access bridging any networks.

Android setup#

  • install “Simple SSHD” from play market, it is dropbear sshd daemon
    • inject your public key into phone sshd
    • configure port etc
    • create sshd shortcut on home screen
  • install fossify notepad from play market
    • configure new txt file with export to sd option
    • make the file /sdcard/000notepad.txt

Linux setup#

  • working ssh client and some network required
  • openvpn client is required

Place editor script into PC ~/bin/memo#

#!/bin/bash
MNT=$(mktemp -d); sshfs phone:/sdcard/ $MNT && vi $MNT/000notepad.txt && umount $MNT && rmdir $MNT

SSH client config setup with LAN/VPN aliasing#

# phone in VPN network
Match originalhost op10 localnetwork 172.16.10.0/24
Hostname 172.16.10.2

# phone in home LAN
Host op10
HostName 192.168.1.44
Port 2222

Usage#

Run memo command in any network while phone sshd is running and you can view/edit the file from anywhere