I have created a EC2 instance in AWS. I have acquired the cmd of the windows EC2 instance using ssh into it.
the following is the command i have used to login,
ssh <user-name>@<ip-address
Eg: ssh admin@3.11.121.1
I need to execute a python script using cmd which is present in EC2 instance. python app.py
The script is not being executed. I have tried to execute explorer.exe
, which is also not working.
Kindly provide me with a possible solution
I have resolved the issues.
If we try to execute a GUI application in the EC2 instance using ssh, the GUI wont show up but the process is being executed in the background, we can ensure that in task manager.
Also, to execute a .exe file or batch file or a python script which triggers a UI application, we need to change certain settings in firewall.