I'm not sure whether you can connect to MAMP via Terminal (as SSH) that works like a server when SSH'ing into a webserver. I like to do this with MAMP but not entirely sure if you can - Google didn't help this part.