Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

HermannSwiss

thx

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 :D
martin

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

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

It seems that your server does not have private key authentication allowed. Are you able to login from any other SSH client?
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

Re: Script downloading files

Please post a log file.
HermannSwiss

Script downloading files

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