patched to use public IP to ssh instead of private IP