if your ssh file is not working then try to use
dos2unix filename.sh
if dos2unix is not installed then install it
sudo apt-get install dos2unix # For Debian/Ubuntu
sudo yum install dos2unix # For CentOS/RHEL
if your ssh file is not working then try to use
dos2unix filename.sh
if dos2unix is not installed then install it
sudo apt-get install dos2unix # For Debian/Ubuntu
sudo yum install dos2unix # For CentOS/RHEL