Unable to authenticate sftp password using command line

Advertisement

ykmohank
Joined:
Posts:
6

Unable to authenticate sftp password using command line

Hi,

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
open sftp://<<username>>:<<password>>@<<servername>>:<<portnumber>>
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.

Please help.

My assignment is i need to automate the task of sending files using sftp.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: Unable to authenticate sftp password using command line

Please compare session log files for both scenarios.

If you won't find the difference, please attach the logs here.

Reply with quote

ykmohank
Joined:
Posts:
6

Hi,

I am tying to connect to the sftp using the following statements
option batch on
option confirm off
open sftp://<<username>>:<<password>>@<<servername>> -HOSTKEY="ssh-rsa 2048 29:7d:c6:64:25:c6:07:2c:9b:7e:92:18:04:2e:c8:1a"
attached is the session.log file please look into that and let me know where exactly i am doing wrong.

Please help.

Reply with quote

Advertisement

DavidFusion
Guest

WinSCP: Access Denied

Hi,

I'm using WinSCP on virtual Windows XP trying to connect to a Ubuntu 12.04 host. I've had this working before but for some reason I am now receiving an access denied error.

I've made sure that I don't have any special characters in my password.

Please help.

Thanks.

Reply with quote

Noobcanon
Guest

Password cannot contain certain characters

I had the same problem and I fixed it by taking out certain special characters in my password. For some reason it doesn't like the pound (£) symbol. Would be nice to know what is/isn't accepted by WinSCP.

Reply with quote

martin
Site Admin
martin avatar

Re: Password cannot contain certain characters

@Noobcanon: It's not about what WinSCP accepts or not (it accepts any character), but rather about WinSCP and the server agreeing on the same encoding. It's better to stick to ASCII characters in the credentials (what a pound sign is not).

Reply with quote

Advertisement

alicehome 2021
Guest

can not find usename and passworld

Dear admin.
I download the winscp.
but do not know where i can find user name and pass world.
Can you help me with that?
Thank you

Reply with quote

Advertisement

You can post new topics in this forum