When I try to connect ssh it takes too long (almost 2 minutes) to appear password prompt.
Why does this happens?
It is something that comes wrong from Ubuntu's installation.
To fix it you have to change this line in /etc/nsswitch.conf:
And change it for this one: