Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup passphraseless ssh to localhost on OS X

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

like image 647
Travis Nelson Avatar asked Aug 20 '11 20:08

Travis Nelson


People also ask

Can I SSH into localhost?

Open the terminal on the server machine. You can either search for “terminal” or press CTRL + ALT + T on your keyboard. Type in ssh localhost and hit enter.


1 Answers

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

like image 195
Tyler Eaves Avatar answered Oct 12 '22 12:10

Tyler Eaves