Monday 15 June 2015

node.js - How to run CLI app (preferably Node) when user connects to server via SSH -



node.js - How to run CLI app (preferably Node) when user connects to server via SSH -

if wanted run cli app whereby users connecting server ssh box , able run commands, how go doing that?

is there way of tying ssh connection commander.js app example?

all examples can find commands beingness entered locally on box , rely on user entering .

i want user have interactive shell prompt commands can entered straight without app name.

if there reference documentation type of setup helpful.

thanks

if wanted restrict user specific command , using private keys authentication, utilize line in /home/user/.ssh/authorized_keys:

command="node foo.js",no-port-forwarding,no-x11-forwarding,no-agent-forwarding ssh-rsa ....

then when connect , start session, node foo.js automatically execute no matter programme seek start.

node.js shell ssh command-line-interface

No comments:

Post a Comment