Below is a part of my shell script. Currently I have shared the public key of the client with the host, therefore I will not be prompted for the password.
The key that has been created on the client is also without a passphrase. If it is created with a passphrase, the code I have will not suffice as the script waits for the passphrase to be entered.
Is there a mechanism where I still create the key with a passphrase and be able to even send the passphrase in my script (or not be prompted for the passphrase)?
Also, what are the risks associated with having a key created without the passphrase?
Hello,
I want to use a shell-script to transfer data over sftp.
I donīt find a way to login in automatically.
I tried to send the password in a script like possible with
ftp
sftp user@server << cmd
password
cd /distant/directory
lcd /local/directoryget ssh_install
get ( or put) your... (2 Replies)
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)
I have a script that will ssh to several different servers, perform a command, display the output, and exit. It works well, but I have to enter my password for each server. That gets a little cumbersome when you have a couple dozen servers. Anyone out there know how to automate this so that I only... (2 Replies)
Hi guys, I have a script which looks a little like this;
grep $id /usr/local/production/service/distributor/clients/*/out/events.xml | awk -F/ '{print $8}'
I want to be able to run this on my dev box, so need to add something into the script which will SSH onto the live server, collect the... (2 Replies)
We have a number of linux clusters running Oracle. The clusters require that all member nodes have promptless/passwordless login through ssh (ie. the keys were created with null passphrases). We also have a management server that is not a member of any cluster but routinely connects to nodes of all... (3 Replies)
ssh passphrase permissions issues
I will try to be as thorough as possible, but keep in mind I am a designer, not a programmer... I do have linux mdadm experience and am reasonably comfortable behind the terminal, but I may need things to be spelled out for me. I am using 2 new-ish Macs with... (1 Reply)
Hi Folks,
I have setup a passwordless connection from my Linux ( source) machine toSolaris ( destination ) machine. I have added passphrase while creating the rsa key. Now problem is each time when i make a connection i have to give the passphrase to make connection. How to override this ?
I... (4 Replies)
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 SUSE
ckeygen
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)