Jeevan
Jeevan

Reputation: 8772

Unable to open SSH tunnel to EMR's master node

Am trying to access Zepplein on EMR, I have followed the instructions as specified on the aws site.

When I try to open SSH tunnel using my laptop

ssh -i pemfile.pem -ND 8157 [email protected]

I get error as

channel 2: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused

I could establish tunnel using my old laptop with same .pem file and access zeppelin. What am I doing wrong?

Upvotes: 5

Views: 3064

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269500

Rather than using -D (which uses the SOCKS protocol), try using -L.

For example:

ssh -i key.pem -L 8890:localhost:8890 hadoop@MASTER-PUBLIC-IP

This will forward port 8890 on your local computer to the master node, which will send it to localhost:8890.

Then, connect to Zeppelin in your local web browser with:

http://localhost:8890

Upvotes: 11

Related Questions