The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk related query abhisek.says UNIX for Dummies Questions & Answers 2 05-22-2008 02:49 AM
sed related query gopsman Shell Programming and Scripting 1 11-30-2007 09:03 AM
Query related to for i in `cat $TEMP_DIR/country.txt sureshg_sampat Shell Programming and Scripting 1 08-31-2007 07:58 AM
Query related to #!/bin/sh sureshg_sampat Shell Programming and Scripting 2 02-08-2007 05:54 AM
Date change related query franklo UNIX for Dummies Questions & Answers 2 09-04-2002 09:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-03-2007
sureshg_sampat sureshg_sampat is offline
Registered User
  
 

Join Date: Nov 2006
Location: Czech Republic
Posts: 48
Query related to scp command

Hi Friends,

I need to execute a scp command to transfer some files from source to target server. Unfortunately the ftp is not working in my case.

This scp command needs to be executed via Unix script.

I need to know the complete scp command which includes the user-id and password of the remote server.

I know of the following command
scp *txt <remote-user-id>@<hostname>:<target directory>.
This command when executed asks for password which I need to enter manually. I need to get rid of this prompt asking for password by automatically including the user-id/password details in the scp command itself.

Can you please suggest

many thanks in advance,
Suresh
  #2 (permalink)  
Old 12-03-2007
encrypted's Avatar
encrypted encrypted is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 219
What about setting up key based authentication for ssh. That way you would not need to enter any password for ssh logins and scp transfers.

HTH
  #3 (permalink)  
Old 12-03-2007
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
You might use "expect" also...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0