File Transfer from Windows to Unix Server

Advertisement

yalok
Joined:
Posts:
2

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.

Reply with quote

Advertisement

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

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 if 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-lien 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
_________________
Martin Prikryl

Reply with quote

yalok
Joined:
Posts:
2

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 wrote:

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 if 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-lien 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

Reply with quote

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

Re: File Transfer from Windows to Unix Server

yalok wrote:

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/"
You have probably not registered the key correctly on the server.
_________________
Martin Prikryl

Reply with quote

FredZone
Guest

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.

Reply with quote

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

FredZone wrote:

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.
Generate log file for both sessions and compare them. I guess you will find what's different. If not, please post the logs.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum