You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm successfully connecting to my server using agentForwarding. My problem is that I then need to switch the user using sudo /bin/su -l deploymentUser which seems to interrupt the connection for submitting further commands.
I can run the commands in this order using iTerm without any problems:
And from this point on nothing happens... so the grunt task will never finish :-(
Is there any way to have the third command (whoami) executed after the userswitch and still get the output displayed in my grunt task.
I'm not a command line hero at all – I just guess that switching the user remotely also causes the terminal-process to switch/spawn to a new instance which doesn't get forwarded properly to the process grunt listens to...
Any ideas?
The text was updated successfully, but these errors were encountered:
I'm successfully connecting to my server using agentForwarding. My problem is that I then need to switch the user using
sudo /bin/su -l deploymentUser
which seems to interrupt the connection for submitting further commands.I can run the commands in this order using iTerm without any problems:
Here is my test-setup in my Grunt file:
When I run the task with
--verbose
this is the output I get:And from this point on nothing happens... so the grunt task will never finish :-(
Is there any way to have the third command (whoami) executed after the userswitch and still get the output displayed in my grunt task.
I'm not a command line hero at all – I just guess that switching the user remotely also causes the terminal-process to switch/spawn to a new instance which doesn't get forwarded properly to the process grunt listens to...
Any ideas?
The text was updated successfully, but these errors were encountered: