I have a PHP socket script that I run from SSH on a remote dedicated server, but I want to try doing that using MAMP with SSH.

I have MAMP configured and am running a remote web server on port 80. I also have remote login enabled in sharing in system preferences and am able to SSH into localhost.

Once I SSH into localhost, I can't do much; the current directory seems empty. How can I get to my PHP file from there and open it so the socket runs?

  • Could you clarify what you mean by "type dirs?" – Randolf Richardson Mar 14 '11 at 5:28
  • i clarified my post – chris Mar 14 '11 at 5:46
  • Great! I wonder if you're SSH'ing into a "chroot'ed" environment that provides you with access only to an empty path. Do you have root access to the system, or are you logging in as a regular user? I'm suspecting file system permissions. – Randolf Richardson Mar 14 '11 at 14:42
  • i'm logging in as a myself using my username. ideally i'd want to access the ssh of mamp and not my computer 'terminal' if that makes sense. – chris Mar 14 '11 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.