Restricting an SSH public key to open reverse tunnels (through ssh -R) only on a specific port -


i have few machines live behind nat want administer. idea have them automatically set reverse ssh tunnels own server. however, since i'll have several such clients connected @ same time want limit every client setting reverse tunnel on specific port. when ssh -p <tunnelport> <useronclient>@localhost don't have several clients on same port. i've been trying through authorized_keys file on server haven't found way.

any idea on how this? or going in wrong way? appreciate help!

you can't remote port forwarding (you can local port forwarding). specify port number part of -r argument so

  • you have choose unique port each server behind nat, if want allow concurrent connections , distinguish between servers.
  • if have unique port each server, problem?

if more clients try create port-forwarding same port, later fail.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -