I am reasonably familiar with the implementation of SSH tunnelling (forward and reverse) for the purpose of creating a secure conduit by which insecure protocols (eg: VNC) can be carried.
On Mac OS, I would like to create a user which will accept an SSH connection but otherwise, zero input. I don't wish to rely on the 3rd party initiator using the -nNT flags.
After searching, I discovered an old thread elsewhere which described how, for a Linux box, a user was added with a shell which accepted no input:
The lines of particular interest / significance being:
Set up a user called "sonarman" on my Linux machine. sonarman's shell is a script that loops forever, printing the date and hostname, then sleep 60.
[The 3rd party] can't do any harm to my system, because sonarman's shell doesn't accept any input.
I'd be grateful for any guidance as to whether this (or something that achieves the same objective) is possible for Mac OS or whether this is a *nix-specific feature.