Hi Greg,
Sorry for lack of details in my response, it was just a tiring day because almost the whole day passed and finally the issue is at least temporarily resolved, and one gets somewhat forgetful. the firewall was enabled on the debian machine, and I am trying to connect to the debian machine from windows machine. After disabling firewall in debian machine ssh connection from the windows machine to debian machine (where the ssh server is located) works. However, I presume that disabling firewall makes the machine vulnerable, so this is not entirely a good solution. I am just reading firewall rules to set up firewall so that ssh connection would be allowed. Apologies if this is too simple a question.