06-13-2008
follow-up question on passphrase and script
can i use key with passphrase on a script/batch process?
i am not sure how to pass the pasphrase in the script. i'd like to automate
secure file transfer. thanks in advance
10 More Discussions You Might Find Interesting
1. Solaris
Hello everybody
I've installed and configured Openssh. Now I want to change the "passphrase". Can anyone please help me out. (1 Reply)
Discussion started by: soliberus
1 Replies
2. Linux
I've installed Openssh on my Linux AS3 server. I created the public/private keys and now I want to change the passphrase, but I don't know how to. Can anyone please help me out. (2 Replies)
Discussion started by: soliberus
2 Replies
3. Solaris
Hello all,
Today we run ssh with keys on all our Solaris systems. But I wounder: Is it possible to add another authentication too. Like the os/system regular password so the users first need to enter the ssh phasssphrase and after that they need to enter the os/system password.
I need like... (3 Replies)
Discussion started by: jOOc
3 Replies
4. Solaris
Hi,
I am new to solaris & i am using version 9. Can anyone give me step by step procedure on how to create a passphrase file for a user, so that he can use it for SSH session.
Any help on this is issue is highly appretiated.
Ansari (6 Replies)
Discussion started by: ansori
6 Replies
5. Shell Programming and Scripting
Hi all,
I generally use the something along the lines of the following when I need to perform SFTP's ... sftp -v -o IdentityFile=${IdentityFile} \
-b ${SFTP_BATCH_FILE} \
${USRID}@${IP_OR_DNS}:${REMOTE_DIR} 2>&1 | tee -a ${SFTPLOG}Now currently we are not using any passphrase... (4 Replies)
Discussion started by: Cameron
4 Replies
6. Shell Programming and Scripting
Hi,
I have written a script that does SFTP successfully without using the password (Thanks to this site :b: ) and it works fine.
The thing is - this script uses the public and private key generation with a "null" passphrase.
But I now need to write a script that does SFTP non-interactively... (1 Reply)
Discussion started by: sandy0077
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
How to configure minimum passphrase (Not UNIX password) requirements on any UNIX box?
Passphrase - the one user enteres while generating pub/pvt keys using ssh-keygen.
Thanks!
Reddy (3 Replies)
Discussion started by: reddyr
3 Replies
8. Shell Programming and Scripting
Hi all,
i have to make a script in shell unix that decrypt a file .gpg ang through out in the same directory the decypted file.
Well, the problem is to put in the shell the passphrase.
Here the specifications:
File .gpg: bella.zip.gpg
File output: bella_decr.zip
passphrase: bella_zio
... (4 Replies)
Discussion started by: zangarules
4 Replies
9. Shell Programming and Scripting
Hello eveyone.
I would like to create a simple batch with curl (or wget) to download a URL but the URL I can only download from the browser and not from shell because curl and wget won't follow the 301 redirect which I get :confused:
I tried with curl -L but no luck.
I want to hear your opinion.... (5 Replies)
Discussion started by: accolito
5 Replies
10. Shell Programming and Scripting
I would like to write a bash shell script which will connect to remote server using passphrase. (I have public-private infrastructure created, and as per instruction, I must not use password less ssh).
This particular script will be fired from cron.
Can you please advice how I can supply the... (2 Replies)
Discussion started by: atanubanerji
2 Replies
LEARN ABOUT DEBIAN
authen::passphrase::clear
Authen::Passphrase::Clear(3pm) User Contributed Perl Documentation Authen::Passphrase::Clear(3pm)
NAME
Authen::Passphrase::Clear - cleartext passphrases
SYNOPSIS
use Authen::Passphrase::Clear;
$ppr = Authen::Passphrase::Clear->new("passphrase");
if($ppr->match($passphrase)) { ...
$passphrase = $ppr->passphrase;
$userPassword = $ppr->as_rfc2307;
DESCRIPTION
An object of this class is a passphrase recogniser that accepts some particular passphrase which it knows. This is a subclass of
Authen::Passphrase, and this document assumes that the reader is familiar with the documentation for that class.
Warning: Storing a passphrase in cleartext, as this class does, is a very bad idea. It means that anyone who sees the passphrase file
immediately knows all the passphrases. Do not use this unless you really know what you're doing.
CONSTRUCTORS
Authen::Passphrase::Clear->new(PASSPHRASE)
Returns a passphrase recogniser object that stores the specified passphrase in cleartext and accepts only that passphrase.
Authen::Passphrase::Clear->from_rfc2307(USERPASSWORD)
Generates a cleartext passphrase recogniser from the supplied RFC2307 encoding. The string must consist of "{CLEARTEXT}" (case
insensitive) followed by the passphrase.
METHODS
$ppr->match(PASSPHRASE)
$ppr->passphrase
$ppr->as_rfc2307
These methods are part of the standard Authen::Passphrase interface. The "passphrase" method trivially works.
SEE ALSO
Authen::Passphrase
AUTHOR
Andrew Main (Zefram) <zefram@fysh.org>
COPYRIGHT
Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram) <zefram@fysh.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-07 Authen::Passphrase::Clear(3pm)