I'm running CentOS Server 7 on a VM (ESXi) with root permissions. I have a bash script (in my /etc/profile.d/ directory) which is executed immediately after login. Before I created my .sh file in the directory there was no problem connecting to my VM via WinSCP. After creating the file and rebooting the system I cannot connect any longer. OpenSSH is installed.. Seems that the bash execution blocks the connection.. If I delete my .sh file via console afterwards the connection is established again. Is this a CentOS problem? Never had this issue under Ubuntu Server.
Error I'm getting:
Cannot initialize SFTP protocol. Is the host running a SFTP server?
Any ideas? Thank you in advance!