Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Mar-2008, 23:58
Wraithman86
Guest
 
Posts: n/a
Thumbs up

Hi all, I was wondering if there was a way SCP in a script without using keys. Does anyone know the command to use so that I can reference the password within a script. I toyed with this which I found online "scp file user@host:/save/path password="password"/>". However I couldn't get that to work. Any help would be greatly appreciated. Thank you

  #2 (permalink)  
Old 23-Apr-2008, 18:53
rev_1318
Guest
 
Posts: n/a
Default

Quote:
Hi all, I was wondering if there was a way SCP in a script without using keys. Does anyone know the command to use so that I can reference the password within a script. I toyed with this which I found online "scp file user@host:/save/path password="password"/>". However I couldn't get that to work. Any help would be greatly appreciated. Thank you
[/b]
The only good option: USE KEYS.
If you really need passwords (but you don't want that!), you'll need something like 'expect' as a wrapper. scp itself does NOT support any kind of password argument.

You can also use thing like Perl with Net::SCP::Expect, but that also is clumsy.

An alternative could be sftp: Perl for exmple has a module Net::SFTP which support password-logins.

But: USE KEYS.

HTH,
Paul
 

Bookmarks

Thread Tools
Display Modes

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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2