This Post has already been read 1882 times.
When you connect the server via winscp software and received this error:
“Server refused to start shell/command”
Then don’t worry, just do the following:
Open the /etc/ssh/sshd_config fle and enable this line
“Subsystem sftp /usr/lib/openssh/sftp-server”
Your problem will be resolved hopefully.