Every day, after several hours of use, anything using SSH will just randomly stop working. The only solution is for me to restart my machine, which fixes it until it randomly occurs again.
> git push Could not create directory '/var/empty/.ssh'. The authenticity of host 'github.com (126.96.36.199)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)?
Here's more info with -v (shortened for brevity) after trying to ssh into a diff host:
debug1: Connection established. Could not create directory '/var/empty/.ssh'. debug1: identity file /var/empty/.ssh/id_rsa type -1 debug1: identity file /var/empty/.ssh/id_rsa-cert type -1 debug1: identity file /var/empty/.ssh/id_dsa type -1 debug1: identity file /var/empty/.ssh/id_dsa-cert type -1
I'm logged into my main OSX user. ~/ and ~/.ssh are both fine and intact and I'm not doing anything to the permissions of my user when this happens. I'm certainly not messing around with anything in /etc when this happens.
Is there anything I can try to help troubleshoot this to figure out why it keeps happening?