Question

I'm trying to get Hadoop's Pseudo-Distributed Operation example (http://hadoop.apache.org/common/docs/stable/single_node_setup.html) to work on OS X Lion, but am having trouble getting the ssh to work without a passphrase.

The instructions say the following:

Setup passphraseless ssh

Now check that you can ssh to the localhost without a passphrase: $ ssh localhost

I'm getting connection refused:

archos:hadoop-0.20.203.0 travis$ ssh localhost
ssh: connect to host localhost port 22: Connection refused

If you cannot ssh to localhost without a passphrase, execute the following commands:

$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa   
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

After this step I am still getting connection refused. Any ideas???

Was it helpful?

Solution

Sounds like you don't have SSH enabled. Should be in the network settings control panel somewhere.

OTHER TIPS

You go to "System Preferences > Sharing > Remote Access" and there's a list of authorized users. Change it to "All Users".

That's solves this problem.

Check the permissions on your .ssh directory. Some ssh implementations require that the directory be chmod 700. Otherwise, they just ignore it.

Also, check the output of

ssh -v localhost

to see how the ssh client is trying to connect. The output is very detailed, and will help you decide if it's an authentication problem.

I had the same issue. Please check if the ssh server is running or not.

If yes, open the /etc/init.d/ssh_config and /etc/init.d/sshd_config files. The issue is that the server is running on a different port and the client is pointing to different port.

Before this please ensure that openssh-server and client are installed.

I had the same problem and i solved it the following manner :

  1. SSH is activated.

  2. ssh -v localhost (as stated by Herko) In the ouput, i identified that the authentication method by DSA is not supported.

debug1: Skipping ssh-dss key /Users/john/.ssh/id_dsa - not in PubkeyAcceptedKeyTypes

  1. I simply re-generate an ECDSA keys and remove the DSA key pairs.

  2. After the keys generation, the procedure given on Hadoop documentation holds.

Therefore, it is important to check, if the authentication method is supported by the Openssh configuration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top