Thread:Extension talk:Push/Push to localhost Authentication error (2)

I've one mediawiki 1.22 in outside server and one in my OSX Mavericks as localhost. From localhost to internet pushing works fine but not from internet wiki to localhost.
 * I get an error "Authentication at http://localhost/~myusername/wiki/api.php failed.
 * But Push is able to recognize the last edit from localhost, so the connection works but pushing not.

$egPushTargets['MyLocalhostWiki'] = 'http://localhost/~myusername/wiki'; or $egPushTargets['MyLocalhostWiki'] = 'http://mediawiki.local/~myusername/wiki'; $wgAllowCopyUploads = true; $wgEnableAPI = true; I've password protection in both and they are set right on both wikis.

Am I able to push to localhost mediawiki? Any idea what would be solution?