Did you install script in vm window or did you create ssh server then use putty or equivalent software to install script?
Was the ssh working before script was installed?
also the firewall should not block ssh.
the firewall is only meant to block public torrent sites that are listed in
this file block list
btw using public ip will not work unless you log in from another address and also set up server as DMZ in your router and or set up the proper port forwards.
so the only ip that would work is local. i use virtualbox just a preference but it allows you to bridge with your nic, making it a lot easier to log into remotely.