Displaying 7 results from an estimated 7 matches for "load_private_key".
2000 Aug 02
1
load_private_key hell
NOTE: If you know how to properly use load_private_key for dsa keys and
NOTE: don't want to read my long post, simply reply with that info and
NOTE: I will really appreciate it. thanks.
I've been playing with the source code and trying to create extra
apps. All has been going well except the fact that I can't load a dsa
private key. T...
2001 Jan 07
1
[PATCH] Caching passphrase in ssh-add.
...1 1.28
+++ ssh-add.c 2001/01/07 21:52:10
@@ -54,6 +54,8 @@
char *__progname;
#endif
+static char *last_passphrase = NULL;
+
void
delete_file(AuthenticationConnection *ac, const char *filename)
{
@@ -172,6 +174,10 @@
/* At first, try empty passphrase */
private = key_new(type);
success = load_private_key(filename, "", private, &comment);
+ if (!success && last_passphrase) {
+ /* Have passphrase from last key loaded */
+ success = load_private_key(filename, last_passphrase, private, &comment);
+ }
if (!success) {
printf("Need passphrase for %.200s\n", filen...
2001 Feb 21
0
Private key files closed twice --
=====
I believe that each private key file read is closed twice as
load_private_key(filename, ...)
fd = open(filename, ...)
...
load_private_key_rsa1(fd, ...)
...
load_private_key_ssh2(fd, ...)
...
close(fd);
Unfortunately, "load_private_key_rsa1" and "load_private_key_ssh2" also
close the file. It would simplest to remove the `close()'s in the rsa...
2001 Mar 27
4
Use of non-user readable (null password) private keys
...user (user-only-readable in their .ssh/), a group (using UN*X group semantics)
or may be accessible to all users of a particular machine or set of machines
(e.g. when a user changes their password, a process is woken up on the
password server).
This all worked fine under ssh, but under openssh load_private_key() does a
(st.st_mode & 077) != 0) {
and then complains that it is readable and won't use it. (it says "It is
recommended that your private key files are NOT accessible by others." but
appears to implement somewhat more than a `recommendation' !)
Is this bug intended as a...
2001 Jan 27
4
load host key error:
I get error:
%SSHD-3-ERROR: Could not load host key: /tmp/ssh_host_dsa_key: Bad file
descriptor
Jan 26 23:58:52: %SSHD-6-INFO: Disabling protocol version 2. Could not
load host key
Everything looks okay, the file exists, (it was generated using command:
ssh-keygen -d -f ssh_host_dsa_key -N '')
I also do 'ls' and find the file exists with permissions:
-rw------- 1 root group
2001 Feb 01
0
warnings on aix325
...opy'
bsd-setproctitle.c:62: warning: `__progname' defined but not used
authfd.c: In function `ssh_get_authentication_socket':
authfd.c:84: warning: implicit declaration of function `socket'
authfd.c:93: warning: implicit declaration of function `connect'
authfile.c: In function `load_private_key':
authfile.c:494: warning: unsigned int format, long unsigned int arg (arg 2)
canohost.c: In function `get_remote_hostname':
canohost.c:39: warning: implicit declaration of function `getpeername'
canohost.c:150: warning: implicit declaration of function `getsockopt'
canohost.c: In f...
2000 Sep 09
0
2.2.0p1 PATCH: ssh/scp/slogin will invoke ssh-askpass
...if (!interactive && getenv("DISPLAY")) {
+ if (getenv(SSH_ASKPASS_ENV))
+ askpass = getenv(SSH_ASKPASS_ENV);
+ else
+ askpass = SSH_ASKPASS_DEFAULT;
+ passphrase = ssh_askpass(askpass, prompt);
+ } else {
+ passphrase = read_passphrase(prompt, 0);
+ }
success = load_private_key(filename, passphrase, k, NULL);
memset(passphrase, 0, strlen(passphrase));
xfree(passphrase);