issh

APK (via appstore)

AppStore version doesn't install apk so you will need to install it manually:

wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static

 Location

You need location services switched on in order for the app to keep running in the background.

  • run cat /dev/location > /dev/null &

On iOS you will get a prompt to allow "iSH" to use your location

  • select "Allow While Using App"

After closing you will get this message Allow "iSH" to alos use your location even when you not using the app?

  • select "Change to Always Allow"

PHP

  • apk update
  • apk add openssl stunnel perl php php-json php-session php-fileinfo php-iconv php-zip php-mbstring php-ctype php-phar curl

SSH

setting up a ssh server

  • $ apk add openssh
  • $ ssh-keygen -A
  • $ passwd
  • type a password
  • edit /etc/ssh/sshd_config and set PermitRootLogin to yes
  • $ /usr/sbin/sshd

Connecting

  • on iOS, check settings->wifi to find IP Address
  • on Mac ssh root@x.x.x.x
  • enter a password created above

Securiting

  • edit /etc/ssh/sshd_config and set Port 22000
  • connect via ssh root@x.x.x.x -p 22000

 Links