I have the following command:
xterm -display :4.0 -e /bin/bash -l /home/script.txt
Script.txt contains (sensitive stuff changed):
#!/bin/bash
set -x
ssh -XY user@255.255.255.0
program &
sleep 3s
Now when I run the above command in a windows CLI, it opens an xterm and connects via SSH, asking for a password. After I enter the password, it stops executing. I set -x
to see what was being executed and it only executes up to the SSH connection then stops.
Any idea what's going on?