Connecting to Mac Mini via SSH unreliable More often than not I am getting this error when connecting to a brand new Mac Mini, firewall disabled:

ssh -l [username] [fixed_ip]
ssh: connect to host [fixed_ip] port 22: Connection timed out
ssh -l [username] [fixed_ip]
ssh: connect to host [fixed_ip] port 22: No route to host


(For security reasons, I have [fixed_ip] and [username] instead of the real values above.)

The connection does work sometimes, though. How can I make it more reliable?
Problem solved after disabling the screensaver and changing the energy saving options on the Mac Mini server.