Copy a directory from a server (UNIX) to a PC (Windows)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Copy a directory from a server (UNIX) to a PC (Windows)
# 1  
Old 09-13-2010
Copy a directory from a server (UNIX) to a PC (Windows)

Hello, I already do some question about this topic. I already establish the conection from the server (Centus) whit the windows PC using SSH. Now I have two problems:

1- The server always ask me about a password to copy the files to the windows pc, I don't know how to avoid this, if someone can explain me how can I do to copy a file from my server (Linux) to my pc (Windows)in an automatic way without the necessity of write the password, please help me.

2- In the way it make the copy, the server only make a a file with the name of the file inside the windows pc, but it file don't have nothing inside, I mean the copied file have size = 0. Someone knows what is happening to my copy?

SmilieSmilieSmilieSmilieSmilieSmilieSmilieSmilieSmilieSmilie
# 2  
Old 09-13-2010
passwordless ssh can be done relatively simply with shared keys, see the link.

I'm less certain what's happening with the empty files, but running scp/sftp with the -b flag may help, it will print verbose debugging information. If you can convince the windows sshd to run with -d for debugging output that may also help explain. I suspect permission issues on the Windows host but that's only a guess.
# 3  
Old 09-13-2010
download the free software "winscp" with GUI interface to make the job easy.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

2. Shell Programming and Scripting

Copy files from Linux server to Windows server

Hi All, I am generating report in a Linux server and once the report is generated the report(.txt file) needs to be automatically saved in a Windows servers. So i am looking for a script to transfer the file automatically from Linux server to Windows server? Please advise. Thanks... (3 Replies)
Discussion started by: arunmanas
3 Replies

3. Shell Programming and Scripting

Need Shell Script to copy files from hp UNIX to windows server 2008

Need Shell Script to copy files from hp unix to windows server 2008 I tried to google and found some options but nothing worked I want a script to copy a file in unix to windows server so I can schedule the script on daily basis.Please help me its more needful for me. Let me know if any... (4 Replies)
Discussion started by: Lucky2Bv
4 Replies

4. UNIX for Advanced & Expert Users

map unix directory to Windows 2003 server

Hi, I am new unix, In the unix server we have two folders 1. /home/directory/sub1/ 2. /home/directory/sub2/ Under each sub we have some other subfolders also. Here my question is I want to create sub2(including subfolder of this) as share drive to windows 2003 server. Can... (7 Replies)
Discussion started by: mabu.ps
7 Replies

5. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

6. Solaris

Copy directory from solaris to windows.

Hi All I am new to Unix/sloaris. I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it. please any one guide me how to do this or share with me some piece of script. It will be very regarded Best Wishes MIS. (3 Replies)
Discussion started by: MIS
3 Replies

7. Programming

Copy directory from solaris to windows.

Hi All I am new to Unix/sloaris. I want to copy a directory (which conatins further sub directories and files)from sloaris to my windows.I am using PuTTy for it. please any one guide me how to do this or share with me some piece of script. It will be very regarded Best Wishes MIS. (1 Reply)
Discussion started by: MIS
1 Replies

8. UNIX for Dummies Questions & Answers

Copy directory from Linux to Windows

Hola a todos, soy realmente nuevo programando en bash, y aśn estoy encontrando bastantes baches :o, mi pregunta es simple, supongo, alguien podria decirme si existe una manera facil de copiar un directorio de un server a otro?, sucede que en un server(server1) tengo los backup de las bases de... (7 Replies)
Discussion started by: yeestrada
7 Replies

9. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server as a svs file

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies

10. UNIX for Dummies Questions & Answers

Copy a windows CVS file to the unix server

I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Discussion started by: zhegal
1 Replies
Login or Register to Ask a Question