
In this post, we gonna enable enable VNC in the Amazon Mac EC2 instance.
Open your terminal and SSH into the amazon Mac Instance. If you don’t have the password for the ec2-user, execute the below steps to set a password or you can skip it.
1 2 |
# SSH into mac. $ ssh -i [your private key.pem] ec2-user@[your public ip address] |
Set password for ec2-user
1 |
$ sudo passwd ec2-user |
Follow the on screen instructions for password setup.
1 2 3 4 5 6 7 8 |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -activate -configure -access -on \ -configure -allowAccessFor -specifiedUsers \ -configure -users ec2-user \ -configure -restart -agent -privs -all sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -configure -access -on -privs -all -users ec2-user |
After executing above steps you can connect to MAC via VNC.
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.