Allowing only SSH tunnel on an account

Add no-pty to the authorized_keys immediately before the ssh-rsa or ssh-dds entry like so:

no-pty ssh-rsa AAAAB3Nza...cFojMlQ== user@serverA

This will let the user login but with no prompt.

Leave a Reply

Your email address will not be published.