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

martin

@FredZone: Generate log file for both sessions and compare them. I guess you will find what's different. If not, please post the logs.
FredZone

I am having this exact problem ("Server refuses our key") when attempting to connect to a Unix SSH server from a W2K or XP box using either the /script or /command option. I can connect to the same server with the WinSCP GUI using the same .ppk file, so how can the key not be "registered properly on the server?" I'm stumped. Thanks for your help.
martin

Re: File Transfer from Windows to Unix Server

You have probably not registered the key correctly on the server.
yalok

Re: File Transfer from Windows to Unix Server

Thanks for the reply.

Regarding daily file transfer from Windows to Unix, I have created Public and Private key pair using tool Putty Key Generator and registered the public on Unix Server and planning to put the below script in Batch file but getting error "Server Refused our key" and challenging for the password, any help to rectify the problem
call "C:\Program Files\WinSCP3\WinSCP3.exe" /console /command /PrivateKey=C:\windowsuser_dsa.PPK "open unix_FID_dev:@UnixDevserver" "option confirm off" "put c:\Testfile.txt /home/user/unix_FID_dev/" "put c:\EODIndicator.txt /home/user/unix_FID_dev/"

Any other alternative to transfer file from Windows to Unix apart from WinSCP?
martin

Re: File Transfer from Windows to Unix Server

yalok wrote:

1. What's the difference between SCP and WinSCP?
2. Is my understanding correct...SCP is for Unix and WinSCP is for Windows?

SCP is file transfer protocol. Also it is name of command-line scp client (typically use on Unix/Linux systems). WinSCP is Windows file transfer client. It uses SCP, but it is not just GUI counterpart of the command-line scp.

3. How can I transfer file from Windows server to Unix Server using SCP automatically on daily basis?

I would use SCP client on the Window server to connect to the Unix server (where there's more probably SSH server running). Just schedule task to run the SCP client using Windows scheduler. See this FAQ
yalok

File Transfer from Windows to Unix Server

Appreciate answer to below queries.

1. What's the difference between SCP and WinSCP?
2. Is my understanding correct...SCP is for Unix and WinSCP is for Windows?
3. How can I transfer file from Windows server to Unix Server using SCP automatically on daily basis?

Thank You.