Check if the SSH daemon is dieing by looking at other log files in /var/log. Next look and see if you are having network connectivity problems. Maybe your wifi is having problems or there is a faulty Ethernet cable.
You should post more information if you need further help. Please use QUOTE tags when you post in the future for cleaner formatting.
Quote:
Just wanted to know whether the issue is from the server end or with the batch file itself
|
No clue what the batch file looks like. No clue what the ssh daemon configuration file (/etc/ssh/sshd_config) or log files (/var/log/messages & /var/log/syslog) are showing about service state.