I'm quite new in this, but i was wondering if there is a way to execute an script that runs the command ssh with another ssh inside the server like this:
ssh <user>@<IP> 'sudo su -; ssh <user>@<IP> 'echo "Hi"''
Or something like that
I'm quite new in this, but i was wondering if there is a way to execute an script that runs the command ssh with another ssh inside the server like this:
ssh <user>@<IP> 'sudo su -; ssh <user>@<IP> 'echo "Hi"''
Or something like that