Search code examples
copyputtypscp

Input password for putty pscp


I'm trying to execute below command using Putty pscp tool.

pscp -v -pw mypassword "X:\data\temp*" root@172.x.x.x:\tmp\data

I'm getting following error.

Fatal: Disconnected: No supported authentication methods available

I have to pass user name and password. And on target system I don't have much of control.

Could anybody point out what I'm doing wrong?


Solution

  • Changed ... PermitRootLogin no ... PasswordAuthentication no ...

    To

    ...
    PermitRootLogin     yes
    ...
    PasswordAuthentication  yes
    

    And it worked!