Jacques44 / node-red-contrib-bigssh

remote command using ssh big node
Apache License 2.0
8 stars 12 forks source link

Execute remote command as root #38

Closed spry-salt closed 1 year ago

spry-salt commented 1 year ago

I must be missing something obvious, sorry. Is there a way to execute a remote command as root/sudo? Normally ssh -t would help but I cant find a way to do that. Can anyone help please?

Jacques44 commented 1 year ago

Hello, I've set up bigssh to execute a simple "sudo id" and it works... I needs your user to be sudoer on the remote system

spry-salt commented 1 year ago

It seems ok for simple commands but not to run a shell script as su. Not to worry, I found another way. Thanks.