(From some hacking by https://keybase.io/tomhiggins)<p>On your AndroidOS device<p><pre><code> Install Termux (https://termux.com/)
Launch Termux
Type these commands
> apt install openssh
> touch ~/.ssh/authorized_keys
> chmod 600 ~/.ssh/authorized_keys
> chmod 700 ~/.ssh
> ssh-keygen
> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
> chmod 600 ~/.ssh/authorized_keys
> sshd
> scp ~/.ssh/id_rsa name@remotehost.com:/path/of/id_rsa
</code></pre>
<p>To SSH into Android from the Remote Host<p><pre><code> Type this command from within a Terminal
> ssh -p 8022 -i /path/of/id_rsa IPofYourAndroid
</code></pre>
<p>To SFTP into Android from the Remote Host<p><pre><code> Type this command from within a Terminal
> sftp -P 8022 -i /path/of/id_rsa IPofYourAndroid
</code></pre>
To Mount to the Termux Directories On the Remote Host Device<p><pre><code> Make sure you have SSHFS installed
Type this command
>sshfs anything@IPofYourAndroid:/data/data/com.termux/files/home/ /path/on/remote/to/mount/ -p 8022 -o IdentityFile=/path/of/id_rsa
Once Mounted you can access the files and directoris on the Android device from
any app/program (example, file managers, Atom editor, Libre Office, etc etc)
</code></pre>
Links to sources:<p>SSH Under Termux - https://oliverse.ch/tech/2015/11/06/run-an-ssh-server-on-your-android-with-termux.html<p>Termux Help - https://termux.com/help.html
ecdsa keys are, I believe, faster and more secure. To use them, replace "rsa" with "ecdsa" wherever it occurs, and ssh-keygen with "ssh-keygen -t ecdsa"