aws-samples / amazon-ec2-mac-getting-started

Use Amazon EC2 Mac instances for building, testing, signing, and publishing applications for Apple hardware!
https://aws.amazon.com/ec2/instance-types/mac/
Other
62 stars 12 forks source link

Can't bind in macOS Ventura: permission denied #4

Open jeisoncp opened 1 year ago

jeisoncp commented 1 year ago

I tried to tunneling the VNC port (5900) over SSH, as the documentation says:

exit
ssh -L 5900:localhost:5900 -i <ec2-key-pair> ec2-user@<ip-address>

But the remote console returns:

bind [127.0.0.1]:5900: Permission denied
Last login: Mon Jan  2 21:07:03 2023 from [...]

    ┌───┬──┐   __|  __|_  )
    │ ╷╭╯╷ │   _|  (     /
    │  └╮  │  ___|\___|___|
    │ ╰─┼╯ │  Amazon EC2
    └───┴──┘  macOS Ventura 13.0.1
jonschwenn commented 1 year ago

I do not believe this to be a Ventura issue on the client side.

  1. Did the binding work from your current client to an EC2 Mac instance running Monterey?
  2. Is this client managed by your employer?
jeisoncp commented 1 year ago

Hi Jon!

  1. I didn't tested from Monterey yet. I will try in my next use.
  2. Yes, it's my employer's machine.

Thanks!

jeisoncp commented 1 year ago

I founded what the problem was: I had TightVNC Server installed and using the 5900. So the problem was occurring on my side.

I removed it (because a use only a viewer), and now I can bind normally.