Displaying 4 results from an estimated 4 matches for "_path_ssh_client_identity".
2001 Jul 29
1
add version 2 identities by default, too
...entities.\n");
}
+void
+add_default_identities(AuthenticationConnection *ac, int deleting)
+{
+ char identity_name[1024];
+ char dsa_name[1024];
+ char rsa_name[1024];
+ struct passwd *pw = getpwuid(getuid());
+ snprintf(identity_name, sizeof identity_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_IDENTITY);
+ snprintf(rsa_name, sizeof rsa_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_ID_RSA);
+ snprintf(dsa_name, sizeof dsa_name, "%s/%s", pw->pw_dir, _PATH_SSH_CLIENT_ID_DSA);
+ if (!pw) {
+ fprintf(stderr, "No user found with uid %u\n",
+ (u_int)getuid());
+ ssh...
2001 Mar 01
1
ssh-add won't look for id_dsa in ssh-clients-2.3.0p1-4 but did in ssh-clients-2.5.1p2-1
...The 2.5.1p1-1 I got from RedHat's rawhide site *does* look for it. Is
this a RedHat patch?
It works if I explicitly specify /home/klotz/.ssh/id_dsa.pub
I looked in ssh-add.c from openssh-2.5.1p2-1.src.rpm from the OpenBSD
rpm directory mentioned above,
and I see that at line 295 it looks in _PATH_SSH_CLIENT_IDENTITY
but no further. I see that readconf.c in line 810 does check
options->protocol && SSH_PROTO_2
and will also check _PATH_SSH_CLIENT_ID_DSA, but this logic is not
present in ssh-add.
Since I don't have the CVS tree, I couldn't check to see if this log was
previously present in
ss...
2004 Aug 25
2
Default path to identity file
Hi,
The name of the identity file defaults to what fill_default_options() in
readconf.c does:
SSH_PROTO_1:
"~/%.100s", _PATH_SSH_CLIENT_IDENTITY
SSH_PROTO_2:
"~/%.100s", _PATH_SSH_CLIENT_ID_RSA
"~/%.100s", _PATH_SSH_CLIENT_ID_DSA
Identity files are always expanded by tilde_expand_filename() which gets
the name of the home directory from getpwuid(my_uid)->pw_dir.
This is not what I expect (well, hope :-) when m...
2001 Oct 16
6
program-prefix does not work
...uot;~/.ssh/known_hosts"
/* backward compat for protocol 2 */
! #define _PATH_SSH_USER_HOSTFILE2 "~/.ssh/known_hosts2"
/*
* Name of the default file containing client-side authentication
key. This
* file should only be readable by the user him/herself.
*/
! #define _PATH_SSH_CLIENT_IDENTITY ".ssh/identity"
! #define _PATH_SSH_CLIENT_ID_DSA ".ssh/id_dsa"
! #define _PATH_SSH_CLIENT_ID_RSA ".ssh/id_rsa"
/*
* Configuration file in user\'s home directory. This file need not be
--- 48,85 ----
#define _PATH_SSH_PROGRAM "/usr/bin/ssh"...