Added conditions for executing ajax callback.
Get ssh-host dynamically via ajax.