SSH invalid open call: O_CREAT without mode
Solution 1:
This post solved my problem. It was because of the following files:
/usr/bin/ssh
/usr/sbin/sshd
which were preventing aptitude
from properly upgrade openssh-server
.
After following the instructions on the mentioned post, just did:
$ sudo aptitude reinstall openssh-server ssh
And problem solved!