0
I have the following script that opens a remote connection on the terminal:
xterm -e ssh -t user@IP -p porta "cd pasta && bash script.sh && exit ; bash"
How to get the connection terminated and the terminal closed after the script has been executed?
If you remove the part '&& Exit ; bash' you should do exactly what you want - run and quit.
– epx
@epx It’s just that I got this script on the net, thanks. it worked!
– Miguel Silva