Add error message if invalid port in the remote shell