Are you using VirtualBox?? I am using VMware Player (latest version) and have no ssh problems or problems using the console directly. I am running R Studio and the rmr2 library in the sandbox quite satisfactorily. Also run it using VMware Fusion on my Mac OS X laptop. On the PC I use putty to set up the ssh session.
I recall from other discussions in this forum that networking with Virtualbox is a little brittle.