|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to use SCP (secure copy) in UNIX
i have to transfer a file from one server to another. say, my script is running on server 'A' and one file has to be transferred from server 'A' to server 'B' using SCP. i am using it as:
sourceserverA> scp -P <port> userid@serverBhostname:/put/this/here <sourcefile path> but it is giving "secure connection to server'B' refused". is thr any userID problem or syntax error?? |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
syntax error
Hi,
you are using the wrong syntax of scp, the first option is the source and the last one is the destination. So, please try in your script sourceserverA> scp -P <port> <sourcefile path> userid@serverBhostname:/put/this/here Regards Malcom |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Secure Copy (SCP) command | justchill | Shell Programming and Scripting | 5 | 09-14-2011 08:20 AM |
| Secure copy help | chrisjones | UNIX for Dummies Questions & Answers | 3 | 05-16-2011 10:41 PM |
| SCP - Secure copy with Certificates exchange. | videsh77 | UNIX for Dummies Questions & Answers | 0 | 08-23-2005 06:00 AM |
| how can i secure the unix box? | rmuhammad | UNIX for Dummies Questions & Answers | 1 | 10-21-2003 03:45 AM |
| looking for a secure copy program (scp) | helios | UNIX for Dummies Questions & Answers | 4 | 11-04-2000 07:26 PM |
|
|