Topic "Authentication failure/////Access denied"

Author Message
Query

Guest


I use WinSCP script to get data,whose name comprise of timestamp. But unfortunately, I am restricted at the very first while authenticating.
Here my script that i use
Code:

option batch abort
option confirm off
open sftp://user:password@10.10.10.10/ -hostkey="ssh-rsa 2048 XX:XX:....:XX"
cd /bam/backup
option transfer binary
get filename.%TIMESTAMP#yyyymmdd%
close
exit

while i use this at line 3, i get a prompt "Too many arguments"
when i replace it by just
Code:
open user@10.10.10.10

then "password= " prompt is highlighting,but after giving password ,i get the tag like "KEYBOARD INTERACTIVE AUTHENTICATION , ACCESS DENIED". then prompt for password needed is showing again,but don't log in.

I have some queries::::::::
1.Can i use generated key by Puttygen function as hostkey ,Here i use it.
2.Can i use any user rather than root,Here i don't use root.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Is there a space in your password? What version of WinSCP are you using?

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Query

Guest


There is no Space in password,But of course there is "@" sign, Will this create any trouble.
When i use the hostkey option,as i said previously,i get tag like "Too many arguments in open command".then abort.
LOG.txt (2.93 KB) Private file

Description: Here I share the log

Running error.png (48.35 KB) [Download]

Description: Here i share the error while running the script

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
You need to URL-encode the @.
See http://winscp.net/eng/docs/session_url
Guest




Here,I use The Encoded format of "@",in my Password field,But problem exists.
Guest




Here,I use The Encoded format of "@",in my Password field,But problem exists.
LOG.txt (2.91 KB) Private file

Description: After using amended format, the newly created LOG file.

NEbackupreport (1).txt (81 Bytes) Private file

Description: Here i use %40 instead of @.

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Checking the log file, your problem has nothing to do with the password. You do not even pass a hostkey verification. The reason is that you are using an ancient version of WinSCP (4.0.5 - 8 years old!) that does not support the -hostkey switch (let only the %TIMESTAMP% syntax).
Query

Guest


Here i Use the Latest version of WINSCP,At last authentication by hostkey has been successfully done But,while giving the password, it tells that access is denied.(Keyboard interactive authentication)
Here even i use encoded form of Special character in password field.then what will be the probable cause???. i share the log file.
Even Password is correct and same Password is used in another automation script for downloading data by FTP script.
Log.txt (5.57 KB) Private file

Description: Here the log file

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
In the latest version of WinSCP you can use /loglevel=* command-line switch to enable password logging, so you can check if correct password is used.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License