scp to get a file from windows desktop to UNIX server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers scp to get a file from windows desktop to UNIX server
# 1  
Old 09-04-2013
Lightbulb scp to get a file from windows desktop to UNIX server

Hi,
I want to use scp to upload file to my unix server.
i am using this:
Code:
 
scp D:\testr.txt unixuser@unixhost:/path

it returns an error:
ssh: D: host/servname not known

i am not sure how to tell path of my D drive in the command and how will command understand it has to pick from my pc?

Please help to make me understand the conceptSmilie
# 2  
Old 09-04-2013
Well D: is understood as server/host name...
If you are on your pc in that directory (and drive...)
What happens when you type scp ./testr.txt unixuser@unixhost:/path?
# 3  
Old 09-05-2013
the error that I get is :
Code:
./testr.txt: No such file or directory

I want to make a generic script by which user can upload anything to the server from his desktop

Last edited by Kohli; 09-05-2013 at 01:41 AM..
# 4  
Old 09-06-2013
maybe remove ./ we agree you are on PC when you use scp, yes?
# 5  
Old 09-06-2013
Why not using a GUI tool like WinSCP to copy the files?
# 6  
Old 09-07-2013
Kohli
I think below one may be helpful for you which copy from windows to Unix.

If windows to Unix then try :
Code:
pscp -l username Source_file  Servername_with_domain_name:<Full_path>

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Proxy Server

Upload file from desktop to UNIX server via putty

I have a requirement of following - 1. Transfer excel spreadsheet from desktop to unix server 2. Open the spreadsheet and read the sql row by row at a time 3. Run each sql on database using unix and then send output back to spreadsheet that was uploaded earlier and then transfer file back to... (12 Replies)
Discussion started by: Analabhatla
12 Replies

2. Windows & DOS: Issues & Discussions

Transfer of zipped folder from windows desktop to UNIX server

Hi all, I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual moving. I use putty to connect to server. I couldnt find any help on this topic. Should i use... (3 Replies)
Discussion started by: sherin22
3 Replies

3. Windows & DOS: Issues & Discussions

Get file on our windows desktop from a ubuntu server

Hello, How can I please have a program automatically upload some files from a ubuntu server to my machine desktop that is running windows XP? I would like to be able to do that from the windows machine itself. Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies

4. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 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. Shell Programming and Scripting

Perl: Sending file from UNIX server to Windows server

I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box. The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused. The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies

7. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

8. Shell Programming and Scripting

Error copying files from Unix (Solaris10) to Windows Server 2003 using scp/sftp

Hi, I have generated a Public/Private Key Pair in Solaris Unix (source) server and deployed the Public key in Windows 2003(target) server .ssh directory of user profile. When i try to connect(ssh, scp, sftp) from Unix, i'm getting below error message. Sun_SSH_1.1, SSH protocols 1.5/2.0,... (0 Replies)
Discussion started by: ajaykumarb
0 Replies

9. UNIX for Advanced & Expert Users

Commands to copy a tar.gz file from a Remote Unix Server to Local Desktop.

Hi, Just wanted to know, how can I ftp/transfer/copy a (design.tar.gz) archive from a Unix Server (sdmc222.sdmc.cp-srv.com) which is at a remote location, to my Windows Desktop. Obviously, it is not possible at cmd prompt on my Windows using the following commands :- ftp... (3 Replies)
Discussion started by: marconi
3 Replies

10. HP-UX

how to execute script from my desktop windows xp to my HPUX server?

Good day, i would like to get some advice, how will i execute my script in hp ux servers, and how to configure rsh and rexec. thanks (2 Replies)
Discussion started by: kenshinhimura
2 Replies
Login or Register to Ask a Question