Install openssh-server in ubuntu: sudo apt-get install openssh-server then, connect with putty via SSH in windows.