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.

About the Author

Kevin Leary is a freelance web developer in Boston, MA specializing in enterprise WordPress development, conversion optimization and JavaScript development.