How to allow login to VMware ESX Server with SSH ?

I was facing a problem to login the ESX through winSCP client then i found the solution ..

Go to the service console on the physical server & login
vi /etc/ssh/sshd_config
Change the line that says PermitRootLogin from “no” to “yes”
do service sshd restart

And my problem was solved…

I don’t have any problems with SFTP or SCP using WinSCP [...]