Setup passphraseless ssh to localhost on OS X

Travis Nelson picture Travis Nelson · Aug 20, 2011 · Viewed 16.7k times · Source

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???

Answer

Tyler Eaves picture Tyler Eaves · Aug 20, 2011

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