Command Line SyntaxI hit a little snag today while trying to connect to MAMP using the OS X Terminal. I must admit I’m very new to the command line, so this may be obvious to many but it wasn’t to me.

Failed Connection

ssh [email protected]

This was throwing an error telling me that port 22 wasn’t available. I know that out of the box MAMP uses port 8888 for apache, so I added that port into the SSH command.

Successful Connection

ssh [email protected] -p 8889

That did the trick! Hopefully it saves some time for other command line newbies like me out there.

Meet the Author

Kevin Leary, Boston WordPress Developer of 10 Years

I'm a freelance web developer and WordPress consultant in Boston, MA with 13 years of experience building websites and applications. View a portfolio of my work or request an estimate for your next project.