Authentication failure/////Access denied

Advertisement

Query
Guest

Authentication failure/////Access denied

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
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
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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,476
Location:
Prague, Czechia

Re: Authentication failure/////Access denied

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.

Reply with quote

Query
Guest

Re: Authentication failure/////Access denied

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.

Description: Here i share the error while running the script

Running error.png

  • LOG.txt (2.93 KB, Private file)
Description: Here I share the log

Reply with quote

Guest

Re: Authentication failure/////Access denied

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

Reply with quote

Guest

Re: Authentication failure/////Access denied

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 @.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,476
Location:
Prague, Czechia

Re: Authentication failure/////Access denied

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).

Reply with quote

Query
Guest

Re: Authentication failure/////Access denied

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,476
Location:
Prague, Czechia

Re: Authentication failure/////Access denied

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.

Reply with quote

Advertisement

You can post new topics in this forum