Problem was 2 virtual machines running in the same time. You can check if you have 2 machines running with vagrant global-status
. That causes terminal when in ssh to freeze.
New Update:
If you still have problems install Ruby.
If you still experience the same thing, then reinstall virtual box, this happens when you install Virtualbox Kernel driver not installed (virtual box kernel) if you installed this reinstall virtual box and everything will be fine.
Or if you are lazy to read just execute this commands
Re-install virtualbox-dkms package first
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
sudo modprobe vboxdrv
sudo modprobe vboxnetflt
After all this steps if you still have freeze when vagrant ssh do this:
Enter in your vagrant folder and remove vagrant box with the following command
vagrant box remove ubuntu/trusty64
P.S Name of my vagrant box is ubuntu/trusty64 , yours can be different, to see the list of the boxes in your VM type following command
vagrant box list