Topic "Script downloading files"

Author Message
HermannSwiss

Guest


Hi @ all

I'm new to this Prog, I've searched the Forum and read the FAQ and Docs, however I didnt found anything really helpfull for my prob.

I want to use a script for downloading files from a SFTP Server. It uses a Private Keyfile with Passphrase. (must not be automatic)
I got so far:

option batch on
option confirm off
open USER@IP Adress
cd /ftp/dcc/USER/output/
get * z:\input\
rm *
close
exit

when I run the Link on my Desktop, he wants to connect with the Username, but ends with:

No supported authentication methods left to try!

My brain runs out of power atm, and I'm very happy for every little help I get. (If you could provide me an Example, I would love you *grin*)

If you need more Infos, plz name it ^^

so long and thx

Hermann
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please post a log file.
_________________
Martin Prikryl
Guest




. 2006-10-26 16:13:48.531 --------------------------------------------------------------------------
. 2006-10-26 16:13:48.531 WinSCP Version 3.8.1 (Build 328) (OS 5.1.2600 Service Pack 2)
. 2006-10-26 16:13:48.531 Login time: Donnerstag, 26. Oktober 2006 16:13:48
. 2006-10-26 16:13:48.531 --------------------------------------------------------------------------
. 2006-10-26 16:13:48.531 Session name: 10xxxxxx@16x.xx.xx.xx
. 2006-10-26 16:13:48.531 Host name: 1xx.xx.xx.xx (Port: 22)
. 2006-10-26 16:13:48.531 User name: 10xxxxxx (Password: No, Key file: No)
. 2006-10-26 16:13:48.531 Transfer Protocol: SFTP (SCP)
. 2006-10-26 16:13:48.531 SSH protocol version: 2; Compression: No
. 2006-10-26 16:13:48.531 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2006-10-26 16:13:48.531 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2006-10-26 16:13:48.531 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2006-10-26 16:13:48.531 SSH Bugs: -,-,-,-,-,-,-,-
. 2006-10-26 16:13:48.531 SFTP Bugs: -,-,-
. 2006-10-26 16:13:48.531 Proxy: none
. 2006-10-26 16:13:48.531 Return code variable: Autodetect; Lookup user groups: Yes
. 2006-10-26 16:13:48.531 Shell: default, EOL: 0
. 2006-10-26 16:13:48.531 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2006-10-26 16:13:48.531 Cache directory changes: Yes, Permanent: Yes
. 2006-10-26 16:13:48.531 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2006-10-26 16:13:48.531 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2006-10-26 16:13:48.531 --------------------------------------------------------------------------
. 2006-10-26 16:13:48.531 Looking up host "1xx.xx.xx.xx"
. 2006-10-26 16:13:48.531 Connecting to 1xx.xx.xx.xx port 22
. 2006-10-26 16:13:48.703 Server version: SSH-2.0-OpenSSH_4.2
. 2006-10-26 16:13:48.703 We claim version: SSH-2.0-WinSCP_release_3.8.1
. 2006-10-26 16:13:48.703 Using SSH protocol version 2
. 2006-10-26 16:13:48.750 Doing Diffie-Hellman group exchange
. 2006-10-26 16:13:48.953 Doing Diffie-Hellman key exchange
. 2006-10-26 16:13:49.500 Host key fingerprint is:
. 2006-10-26 16:13:49.500 ssh-rsa 1024 2b:9d:be:78:96:20:73:0e:36:2f:ba:65:fa:77:20:81
. 2006-10-26 16:13:49.500 Initialised AES-256 client->server encryption
. 2006-10-26 16:13:49.500 Initialised HMAC-SHA1 client->server MAC algorithm
. 2006-10-26 16:13:49.500 Initialised AES-256 server->client encryption
. 2006-10-26 16:13:49.500 Initialised HMAC-SHA1 server->client MAC algorithm
! 2006-10-26 16:13:49.750 Verwende Benutzername "10xxxxxx".
. 2006-10-26 16:13:49.812 Keyboard-interactive authentication refused
! 2006-10-26 16:13:49.812 No supported authentication methods left to try!
. 2006-10-26 16:13:49.812 No supported authentications offered. Disconnecting
. 2006-10-26 16:13:49.812 Server closed network connection
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
It seems that your server does not have private key authentication allowed. Are you able to login from any other SSH client?
_________________
Martin Prikryl
HermannSwiss

Guest


I can connect over WINSCP manually with the same Login Information an the Keyfile, no problems to down or upload files.

I hope I got your Question right, I'm really new to scripting and stuff.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Sorry. I've missed some info. It seems that you do not pass the key to the script. Either use /key command line option or preconfigure a stored session with an associated key.
_________________
Martin Prikryl
HermannSwiss

Guest


ok, i've added /privatekey=C:\packpri2.ppk to the command line.

so easy, wondering why i wasnt thinking of that
thx alot you guys are great Very Happy
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