I am really new in bash scripting and I can't even make simple tasks
What I am trying to do is executing a command (ls -l for this example), over a double leap ssh.
#!/bin/bash ssh -T myuser@entrypoint ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI
I did the following script before and it works, but since I need a double leap it is not useful at all
#!/bin/bash ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI
My naive assumption was that it would be just adding another ssh to the line