I able to connect to my sftp server using Graphical user interface of WinSCP by providing the user name and password.
But when i try to connect using the following statement
in the command prompt i am getting the error message saying that the "User Authentication Failed"
But the same username and password is working in case if i use the Graphical User Interface.
My assignment is i need to automate the task of sending files using sftp.