Unable to transfer files from Windows 2000 Server to Sun Solaris..


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unable to transfer files from Windows 2000 Server to Sun Solaris..
# 1  
Old 04-09-2010
Unable to transfer files from Windows 2000 Server to Sun Solaris..

Dear Friends,

I need to transfer few files from a Windows 2000 server to Sun Solaris system, connected in the same network. This copy should be done as a batch job without asking for password to be entered every time. How to make this possible ???

At present I am using cygwin in my laptop to copy the files but with password everytime I transfer the files. The command I am using is:
scp //IP-address-of-windows-2000/SharedFolder-with-my-laptop/ user@Sun-Solaris-Computer:/path
The command works very fine and aksing for password and then files are transferred.

But my question is how to run the same command from Sun-Solaris as a script at specified intervals and also without asking for password of Windows-2000 PC every time. Currently there is no SSHD, FTP server etc.installed in Windows-2000 server. So it is possible without the installation of any of them??

I want a complete procedure for this to make this passwordless transfer possible between Solaris -to- windows with the script running preferably on Solaris Computer.

Thanks..
# 2  
Old 04-09-2010
Win2k ships w FTP services onboard, but it's very often disabled for security reasons.

You can look into re-enabling the service and set up the job on the Solaris side, but you could also set the job up using authenticated key-based security in scp. I'm not sure if you can batch a scheduled task in windows to run an scp session under cygwin (I use UWin, which integrates with cmd), but I wouldn't be surprised.

---------- Post updated at 07:45 ---------- Previous update was at 07:45 ----------

Win2k ships w FTP services onboard, but it's very often disabled for security reasons.

You can look into re-enabling the service and set up the job on the Solaris side, but you could also set the job up using authenticated key-based security in scp. I'm not sure if you can batch a scheduled task in windows to run an scp session under cygwin (I use UWin, which integrates with cmd), but I wouldn't be surprised.
# 3  
Old 04-09-2010
See my post on how to write a Windows Batch script which transfers files with M$ ftp in a Batch file. As mentioned in earlier posts the M$ ftp software must be installed and working. The main issues with M$ ftp are to do with listening but in this case we are initiating which is less of an issue.


https://www.unix.com/shell-programmin...assword-2.html

This tackles the automated file transfer from W2K to Solaris. Obviously you cannot transfer Solaris to W2K using ftp unless the W2K ftp server software is installed and working.

Last edited by methyl; 04-09-2010 at 09:29 PM..
# 4  
Old 04-09-2010
Only caveat with methyl's approach is the password is stored in plain-text on the windows machine. If scp is already present and functional and you're going to write a batch file anyway, why not keep it in play? It offers the capacity for automation without cause for security concerns, while eliminating the need to resurrect FTP services that were disabled...for good reason.
# 5  
Old 04-16-2010
Thanks everyone for the replies..
I got a solution to my problem by using the pscp command.
pscp -pw "Password of username" file_to_upload username@remote_IP.
I kept this script in the windows scheduler..

Regards
Sidda..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with a script to transfer files from Solaris to windows

Hi Please can you tell me what could be wrong with the following scriptto transfer files from solaris 10 to windows machine: #!/bin/sh HOST=<IP> USER=administrator PASSWD=xyz123zyx /usr/bin/ftp -inv <<EOF connect $HOST user $USER $PASSWD cd Documents binary mput *.sh bye EOF (23 Replies)
Discussion started by: fretagi
23 Replies

2. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

3. Shell Programming and Scripting

Script to transfer files from Solaris to windows

Hi All Please can you help, I´ve wrote the following script on a solaris 10 server to transfer files to a windows machine. #!/usr/bin/sh cd /moneta_polled01/download HOST=10.100.4.72 USER=user1 PASSWD=V7stop /usr/bin/ftp -v $HOST <<EOF user $USER $PASSWD cd tmp binary put... (7 Replies)
Discussion started by: fretagi
7 Replies

4. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

5. Solaris

Transfer files from windows to solaris with winscp (file protocol:SFTP)

Hello, I have a couple of zip files to be copied from my local drive to a folder in solaris10 residing in a VM ware. i am using WINSCP, I tried to get hold of the solaris hostname or ip using ifconfig -a , hostname|nslookup etc. when i create a new session in WINSCP using that IP and port... (6 Replies)
Discussion started by: herbich1985
6 Replies

6. Shell Programming and Scripting

Transfer files from linux server to windows using secure ftp (sftp)

HI, I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies

7. Solaris

Transfer files from Solaris to windows

Please let me know a efficient way to transfer files from a solaris to a windows machine. Total size of data is 800GB. (3 Replies)
Discussion started by: pingmeback
3 Replies

8. Solaris

Copy Folders from Sun Solaris to Windows server.

Hi, I have a folder with diff subfolders in my Unix box and now I want to ftp all the floders into my Windows machine. Is there any easy way to do that. When I use the "mget " cmd and try to FTP the files, it throws an error that the sub folder name does not exist. Can you someone help in... (3 Replies)
Discussion started by: chandu_kalari
3 Replies

9. UNIX for Dummies Questions & Answers

Transfer files from Unix server to Windows using FTP

Dear Friend, I don't know much about unix.I am an VB6.0 Programmer.I need to move an text files as aaa.txt from unix server to windows "D: " driver using the FTP protocol.Is it possible to do this with help of unix shell script.If possible please give some sample codes. Please answer as early... (1 Reply)
Discussion started by: gjsaravanan
1 Replies
Login or Register to Ask a Question