Forum / NoMachine for Linux / How to set NX port on pre-existing AWS EC2 Ubuntu instance?
- This topic has 8 replies, 3 voices, and was last updated 4 years, 5 months ago by kroy.
November 27, 2018 at 21:55 #20612
I’ve gone through this nice tutorial:
but it assumes one is creating an AMI from scratch. I already have a working instance. How can I allow for the NX protocol on port 4000? This info seems to address the questions
but I don’t know exactly what command I should issue in the terminal. E.g., what should I put for
cidr_ip_range?November 28, 2018 at 13:40 #20627
To create a new Security Group – find “Network & Security” on the left AWS panel. Choose “Security Groups” and launch “Create Security Group”. Then:
- Click ‘Add Rule’.
- In ‘Type’, set Custom TCP Rule.
- Protocol should be set to TCP.
- Set Port Range to 4000 (the default port used by NoMachine).
- In ‘Source’ select Anywhere or Custom IP.
To add Security group to existing instance – click right mouse button on the correct instance. Select “Networking” -> “Change Security Groups”. Now choose correct group and click “Assign Security Groups” to confirm. Then you’ll be able to connect via NX protocol.November 29, 2018 at 08:51 #20633
Thank you. I’m fairly new to AWS and didn’t realize I could use the console to do this. I’m still having trouble however….
After adding and setting up the security group+rule as you advise, when I try to use the NoMachine app on my local machine to connect, I get a timeout message. But yet I am able to ssh in to the same machine from a terminal. Can you advise on how to troubleshoot? This only disparity from your setup instructions here
and my own configuration (that I’m aware of) is that (1) my instance is Ubuntu 16.04, and (2) I did not go through the “Getting the VM desktop environment ready” part of the linked tutorial. Is there something akin to that, that I should install for Ubuntu? I did go through the subsequent tutorial step, installing the NoMachine x86_64 .deb package found here: https://www.nomachine.com/download/linux&id=1 on the instance.
Thanks.November 29, 2018 at 08:52 #20635
Following up, regarding my Ubuntu 16.04 instance… I installed the Xfce desktop as described here: https://www.nomachine.com/AR11N00908&an=ssh%20key. But the same timeout problem remains, when I try to connect using the NoMachine app.November 29, 2018 at 11:57 #20648
It looks there is still problem with Security Groups configuration. Did you tried adding a rule with selected “Custom IP” as “Source”?November 30, 2018 at 08:34 #20657
I initially tried it with “Source” set to “Anywhere”. I’ve also tried it set to “MyIP”. In both cases there is a timeout.November 30, 2018 at 17:04 #20666BritgirlParticipant
So you don’t even reach the login prompt (username and password pane)? We’ve gone through the instructions again just to make sure they are correct, which they are. Have you checked whether there IP address has changed? If you are using a previous session file, try creating a new connection from scratch. Does that help?December 3, 2018 at 09:43 #20667
I can still log in with ssh using the same public DNS name as I’m using when trying with NX, so the address cannot have changed. I’m not sure what you mean by session file. Can you explain? Where is this file located? Thanks.December 7, 2018 at 15:12 #20727
The connection file which is mentioned in this case – stores pre-session settings. The directory defined in the Connections field from the ‘Player environment panel of the GUI’ is by default located in the
So in this case it is better to create a new connection. Are you able to see the login prompt? If not, it looks like there is still a problem with the Security Groups configuration. Could it be that the wrong group was assigned?
Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.