why do i get "access denied" on this ssh tunnel

0

why do i get "access denied" on this ssh tunnel . from http private to http public ip on the same windows server machine.
https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-ssh-tunnel-local.html

5 Answers
1

The key file (key.pem) should have chmod 400 permissions

profile pictureAWS
EXPERT
Deeksha
answered 18 days ago
0

you need to set the right permission to the SSH key you are using like the

chmod +X  key.ppm or chmod +X  key.pub

or it's equivalent in windows

profile picture
answered 18 days ago
0

So ( for testing ) only http to http with no key , will not work ?

answered 18 days ago
0
  1. You can use password authentication for SSH tunnels, but you must ensure SSH server settings allow it.

  2. Double-check security group rules and network settings.

  3. Test by accessing the tunneled port and verify that the HTTP service is running and reachable.

  4. If you’re testing an HTTP tunnel (HTTP traffic over SSH), make sure:

    HTTP Service: The HTTP service on the target private IP is running and accessible. Local Port Binding: The local port you are using for the tunnel (e.g., localhost:local_port) should be available and not blocked by local firewall rules.

profile pictureAWS
EXPERT
Deeksha
answered 18 days ago
0

Basel , Deekshitha , thanks for your answers . first , i am using windows ( not linux ) . So how to use a certificate , i guess a with pem file and a fix to it's security settings in windows . i saw something about letting the certificate the correct credentials ?

answered 17 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions