osx – 在OS X上设置passphraseless ssh到localhost

我试图让Hadoop的伪分布式操作示例(http://hadoop.apache.org/common/docs/stable/single_node_setup.html)在OS X Lion上工作,但是无法使ssh工作密码。

说明如下:

Setup passphraseless ssh

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

我收到连接拒绝:

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

在这一步后,我仍然得到连接拒绝。有任何想法吗???

听起来您没有启用SSH。应该在网络设置控制面板的某个地方。
http://stackoverflow.com/questions/7134535/setup-passphraseless-ssh-to-localhost-on-os-x

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:osx – 在OS X上设置passphraseless ssh到localhost