SSH Issue

I have an issue where I have ssh’d into a device. Issued some code and then am unable to SSH back in.

I noticed that the .ssh folder is missing so therefore I cannot delete the known_hosts and try to reconnect.

I recently installed MAMP on a mac on the same network and this creates a local web server using

I am wondering if this has caused an issue with the hosts file. Would this affect it? Surely that would only affect connecting to servers.