Displaying 10 results from an estimated 10 matches for "_path_host_config_file".
2004 Oct 03
3
[PATCH] PreferAskpass in ssh_config
...iginal_real_uid = getuid());
+ if (!pw) {
+ logit("You don't exist, go away!");
+ exit(1);
+ }
+
+ snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir,
+ _PATH_SSH_USER_CONFFILE);
+ (void)read_config_file(buf, "", &options, 1);
+ (void)read_config_file(_PATH_HOST_CONFIG_FILE, "",
+ &options, 0);
+ fill_default_options(&options);
/* At first, get a connection to the authentication agent. */
ac = ssh_get_authentication_connection();
Index: ssh-agent.c
===================================================================
RCS file: /cvs/opens...
2024 May 06
1
Feature request/EOI: Match interactive config?
...har **, int *);
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 968344e79..4913b540d 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -222,7 +222,7 @@ main(int argc, char **argv)
/* verify that ssh-keysign is enabled by the admin */
initialize_options(&options);
- (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, "", "",
+ (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, "", "", NULL,
&options, 0, NULL);
(void)fill_default_options(&options);
if (options.enable_ssh_keysign != 1)
diff --git a/ssh.c b/ssh.c
index 0019281f4..ecaff3844 100644
--- a...
2024 May 06
1
Feature request/EOI: Match interactive config?
... and I guess your next question will be about compilation environment, so:
```
$ gcc --version
gcc (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
I'm running on gentoo. I tested that the
2024 May 06
1
Feature request/EOI: Match interactive config?
...har **, int *);
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 968344e79..4913b540d 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -222,7 +222,7 @@ main(int argc, char **argv)
/* verify that ssh-keysign is enabled by the admin */
initialize_options(&options);
- (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, "", "",
+ (void)read_config_file(_PATH_HOST_CONFIG_FILE, pw, "", "", NULL,
&options, 0, NULL);
(void)fill_default_options(&options);
if (options.enable_ssh_keysign != 1)
diff --git a/ssh.c b/ssh.c
index 0019281f4..ecaff3844 100644
--- a...
2024 May 04
3
Feature request/EOI: Match interactive config?
Hey there,
I often want different behavior in my ssh client depending on whether I'm logging into an interactive session or running a remote non-interactive command. We can see at, say, https://unix.stackexchange.com/a/499562/305714 that this isn't a unique wish, and existing solutions are kind of baroque. Typical reasons to do this are to immediately go into a screen or tmux session; for
2001 Apr 12
1
ssh's readconf.c debug() goes to /dev/null
...OG_FACILITY_USER, 1);
/* Read per-user configuration file. */
snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, _PATH_SSH_USER_CONFFILE);
read_config_file(buf, host, &options);
/* Read systemwide configuration file. */
read_config_file(_PATH_HOST_CONFIG_FILE, host, &options);
/* Fill configuration defaults. */
fill_default_options(&options);
/* reinit */
log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 1);
---
The first time
Because of this, if you use 'ssh -v -v -v somewhere', you won't get
messages li...
2016 Aug 29
2
[PATCH] Make "ssh" try different configuration filenames
...aller fit; skip last digits, then non-digits. */
+ len--;
+ while (len && isdigit(version_postfix[len-1]))
+ len--;
+ while (len && !isdigit(version_postfix[len-1]))
+ len--;
+ }
/* Read systemwide configuration file after user config. */
(void)read_config_file(_PATH_HOST_CONFIG_FILE, pw,
--
2.9.3
2006 Feb 22
8
[Bug 1159] %u and %h not handled in IdentityFile
http://bugzilla.mindrot.org/show_bug.cgi?id=1159
Summary: %u and %h not handled in IdentityFile
Product: Portable OpenSSH
Version: 4.3p2
Platform: All
URL: http://www.math.ualberta.ca/imaging/snfs/openssh.html
OS/Version: Linux
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
2003 Jan 18
0
[Patch] User-dependent IdentityFile
...r *optarg;
@@ -767,6 +799,13 @@
exit(1);
}
+ snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir,
+ _PATH_SSH_USER_CONFFILE);
+ (void)read_config_file(buf, hostname, &options);
+
+ /* Read systemwide configuration file after user config. */
+ (void)read_config_file(_PATH_HOST_CONFIG_FILE, hostname, &options);
+
while ((opt = getopt(ac, av, "deiqpclBRxXyb:f:t:U:D:P:N:C:")) != -1) {
switch (opt) {
case 'b':
diff -ru ssh/ssh.c sshJ/ssh.c
--- ssh/ssh.c Wed Sep 18 19:58:18 2002
+++ sshJ/ssh.c Sat Jan 18 16:20:41 2003
@@ -1165,9 +1165,13 @@
xfree(keys)...
2001 Oct 16
6
program-prefix does not work
...mpat for protocol 2 */
! #define _PATH_SSH_SYSTEM_HOSTFILE2 ETCDIR "/ssh_known_hosts2"
/*
* Of these, ssh_host_key must be readable only by root, whereas
ssh_config
* should be world-readable.
*/
! #define _PATH_SERVER_CONFIG_FILE ETCDIR "/sshd_config"
! #define _PATH_HOST_CONFIG_FILE ETCDIR "/ssh_config"
! #define _PATH_HOST_KEY_FILE ETCDIR "/ssh_host_key"
! #define _PATH_HOST_DSA_KEY_FILE ETCDIR "/ssh_host_dsa_key"
! #define _PATH_HOST_RSA_KEY_FILE ETCDIR "/ssh_host_rsa_key"
#define _PATH_DH_MODULI ETCDIR "/moduli"...