The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp/scp/ssh script with password as authentication james_falco HP-UX 4 05-27-2009 03:04 PM
How to use SFTP from command line without entering user and password Hangman2 UNIX for Advanced & Expert Users 7 03-07-2009 03:22 AM
SFTP - Pass password auti bullz26 Shell Programming and Scripting 10 05-29-2008 08:16 AM
Configured sftp still requires password unilover UNIX for Advanced & Expert Users 24 03-29-2008 08:41 AM
sftp prompting for password dsravan UNIX for Dummies Questions & Answers 1 05-03-2007 08:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-09-2008
shabu shabu is offline
Registered User
  
 

Join Date: May 2007
Posts: 16
Specify password in SFTP command

Hi,

How can I specify a password on the scp command line so that it should not prompt for the password?

Shabu
  #2 (permalink)  
Old 10-09-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,419
try something like this

Code:
scp filename user@passwd:/path

  #3 (permalink)  
Old 10-10-2008
shabu shabu is offline
Registered User
  
 

Join Date: May 2007
Posts: 16
Tried it

Hi,

I am able to copy to the destination mahine without any problem. But each and everytime it's asking for the password. I want to schedule job so that it can copy a file to the destination machine without anyones intervention.

shabu
  #4 (permalink)  
Old 10-10-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 208
set up ssh keys for the user that will run the script.
a quick search on google for "ssh passwordless connection" will show you how.
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 09:58 PM.


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