Displaying 5 results from an estimated 5 matches for "_path_ssh_client_id_rsa".
2001 Jul 29
1
add version 2 identities by default, too
...{
+ 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_close_authentication_connection(ac);
+ exit(1);
+ } else {
+ int identity_found = !access(ident...
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 my UID is 0 but I'm not
root.
In other words: my username...
2023 Sep 03
1
[patch] ssh-keygen(1): generate Ed25519 keys when invoked without arguments
...EY_TYPE_NAME "ed25519"
-#endif
+#define DEFAULT_KEY_TYPE_NAME "ed25519"
/*
* Default number of bits in the RSA, DSA and ECDSA keys. These value can be
@@ -252,7 +248,7 @@ ask_filename(struct passwd *pw, const ch
char *name = NULL;
if (key_type_name == NULL)
- name = _PATH_SSH_CLIENT_ID_RSA;
+ name = _PATH_SSH_CLIENT_ID_ED25519;
else {
switch (sshkey_type_from_name(key_type_name)) {
case KEY_DSA_CERT:
2001 Oct 16
6
program-prefix does not work
...n_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"
#endif
+ #ifndef _PATH_SCP_PROGRAM
+ #define _PATH_SCP_PROGRAM _PROGRAM_PREFIX "scp"
+ #endif
+
/*...
2008 Apr 21
3
FIPS 140-2 OpenSSL(2007) patches
Hi,
I am happy to (re)send a set of patches for compiling OpenSSH 4.7p1 with
FIPS 140-2 OpenSSL.
These are based on previously reported patches by Steve Marquess
<marquess at ieee.org> and Ben Laurie <ben at algroup.co.uk>,
for ver. OpenSSH 3.8.
Note that these patches are NOT OFFICIAL, and MAY be used freely by
anyone.
Issues [partially] handled:
SSL FIPS Self test.
RC4,