Passwordless acess

Advertisement

hassan83
Guest

Passwordless acess

My client doesn't allow normal FTP anymore and will only allow SFTP without password I am passing the following command script files but it doesn't seem to work still asks me for password

options batch abort
option confirm off
open prcdsafe@10.217.xx.xx -hostkey="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1yM/SKgnB8RZUUg4QorK4FqHq0kmySQUVMXJoOFbDWLUMWX3SUdeg7aAY+VhRDZxDl9hyAN6/9NXpPwXjGVcbljgBoXYTJm1f1H3EO77XkCBSm7WJuwXxWwEpnaKf48R42oIv0VJi5z9cOPDLdyPf4xMIoeo4w== datasafe@flplanoptcm4"
lcd C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\
CD ../..
CD /var/opt/ericsson/nms_umts_wran_bcg/files/import
put C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\2011-10-06_11192508_BLRNC1_DATASAFE.BLRNC1
close
exit

----------------------------------------------------------------------

C:\Documents and Settings\datasafe>winscp.com -script="C:\tmp\FTPScript.txt"
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Access denied.

Authentication log (see session log for details):
Using username "prcdsafe".
Access denied.
Access denied.
Access denied.
Access denied.

Authentication failed.

C:\Documents and Settings\datasafe>winscp.com stp -script="C:\tmp\FTPScript.txt
"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "prcdsafe".

Authentication failed.

C:\Documents and Settings\datasafe>winscp.com stp//:prcdsafe@10.217.196.80 /script="C:\tmp\FTPScript.txt"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Passwordless acess

So there's no authentication on that SSH server needed?
How do you login say with SSH terminal (like PuTTY)? Can you post a log from one?

Reply with quote

hassan83
Guest

thanks Martin....

we are using cygwin at the moment at client site and hostkey exchange has been done between the two servers when i login via cygwin I get the folllowing log on login

datasafe@flplanoptcm6 /cygdrive/d/HistoryBackup/printsdump/20111004T0658 [0]
$ sftp prcdsafe@10.217.196.80
Connecting to 10.217.196.80...
sftp> pwd
Remote working directory: /home/prc/prcdsafe
sftp>

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Passwordless acess

Please post a full WinSCP log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Reply with quote

Advertisement

You can post new topics in this forum