I've recently wanted to have more-secure authentication
requirements for external connections than those originating
from the local network. (ie: from, you can log in using just a
password, but from's random numbers, don't bother), you can only
get in using keys-based authentication.) Didnt see anything
similar when I was searching for a way how online, so I figured
I'd share in case anyone else wanted to do the same thing. (or
wants to say "Don't do that! It will cause horrors from beyond
time!" or wants to say "wtf? Just add this to your sshd_config,
dimwit!)  In order to achieve this, I created an extra user
account "someuser-remote" with the same UID as "someuser", the
same home directory and shell, and no password (ie: account
disabled).  # useradd -o -u 1000 -g 1000 -d /home/someuser/ -s
/bin/bash (a more general but still imperfect command: ) #
useradd -o -u $(grep ^someuser:|cut -d: -f3) -g $(grep
^someuser:|cut -d: -f4) -d /home/someuser/ -s /bin/bash
someuser-remote  then added to my sshd_config: Al