follow-up question on passphrase and script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers follow-up question on passphrase and script
# 1  
Old 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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Supply passphrase for ssh in script

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

2. Shell Programming and Scripting

Curl/wget shell script to follow redirect.

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

3. Shell Programming and Scripting

Script .ksh to decrypt .gpg(passphrase)

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

4. UNIX for Advanced & Expert Users

Passphrase Complexity

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

5. Shell Programming and Scripting

SFTP - non-interactive - using passphrase

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

6. Shell Programming and Scripting

SFTP & Passphrase('s)

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

7. Solaris

creating passphrase file

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

8. Solaris

SSH passphrase and Password

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

9. Linux

how do i change openssh passphrase

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

10. Solaris

How to change Openssh passphrase

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
Login or Register to Ask a Question
CKEYGEN(1)																CKEYGEN(1)

NAME
ckeygen - connect to SSH servers SYNOPSIS
ckeygen [-b bits] [-f filename] [-t type] [-C comment] [-N new passphrase] [-P old passphrase] [-l] [-p] [-q] [-y] ckeygen --help DESCRIPTION
The --help prints out a usage message to standard output. -b, --bits <bits> Number of bits in the key to create (default: 1024) -f, --filename <file name> Filename of the key file. -t, --type <type> Type of key (rsa or dsa). -C, --comment <comment> Provide a new comment. -N, --newpass <pass phrase> Provide new passphrase. -P, --pass <pass phrase> Provide old passphrase. -l, --fingerprint Show fingerprint of key file. -p, --changepass Change passphrase of private key file. -q, --quiet Be quiet. -y, --showpub Read private key file and print public key. --version Display version number only. DESCRIPTION
Manipulate public/private keys in various ways. If no filename is given, a file name will be requested interactively. AUTHOR
Written by Moshe Zadka, based on ckeygen's help messages REPORTING BUGS
To report a bug, visit http://twistedmatrix.com/bugs/ COPYRIGHT
Copyright (C) 2002-2008 Twisted Matrix Laboratories. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
ssh(1), conch(1) October 2002 CKEYGEN(1)