Can’t login after editing /etc/security/limits.conf

After edited the /etc/security/limits.conf file to set the nofile parameter to unlimited, server got hanged . Can’t login in via ssh. Tried to take console, issue with console. Will reboot of the VM will solve the login issue ?