在搭建Hadoop环境时,MAC系统因为ssh localhost无法实现不输入密码访问所以一般需要修改etc/ssh_config文件,此时可能会在 ssh localhost 后提醒:
/etc/ssh/ssh_config line 49: Unsupported option "rsaauthentication"
/etc/ssh/ssh_config: line 51: Bad configuration option: authorizedkeysfile
/etc/ssh/ssh_config: terminating, 1 bad configuration options
解决方案简单粗暴,直接注释掉:AuthorizedKeysFile .ssh/authorized_keys
再次尝试 ssh localhost 即可实现正常访问