search for: a2port

Displaying 17 results from an estimated 17 matches for "a2port".

2004 May 18
0
use of -D at EscapeChar command line
...; - if (sscanf(s, "%5[0-9]:%255[^:]:%5[0-9]", - sfwd_port, buf, sfwd_host_port) != 3 && - sscanf(s, "%5[0-9]/%255[^/]/%5[0-9]", - sfwd_port, buf, sfwd_host_port) != 3) { - logit("Bad forwarding specification."); - goto out; - } - if ((fwd_port = a2port(sfwd_port)) == 0 || - (fwd_host_port = a2port(sfwd_host_port)) == 0) { - logit("Bad forwarding port(s)."); - goto out; - } - if (local) { - if (channel_setup_local_fwd_listener(fwd_port, buf, - fwd_host_port, options.gateway_ports) < 0) { + if (socks){ + if ( (sscanf(s, &q...
2002 Aug 13
1
[PATCH] global port forwarding restriction
...d_opens(patterns) < 0) { debug("%.100s, line %lu: Bad permitopen specification " "<%.100s>", file, linenum, patterns); auth_debug_add("%.100s, line %lu: " @@ -256,16 +253,6 @@ xfree(patterns); goto bad_option; } - if ((port = a2port(sport)) == 0) { - debug("%.100s, line %lu: Bad permitopen port <%.100s>", - file, linenum, sport); - auth_debug_add("%.100s, line %lu: " - "Bad permitopen port", file, linenum); - xfree(patterns); - goto bad_option; - } - if (options...
2004 Aug 05
1
LocalForward and RemoteForward bind patch
...ne) - 1; len > 0; len--) { @@ -645,13 +648,32 @@ case oLocalForward: case oRemoteForward: + buf[0] = '\0'; + arg = strdelim(&s); if (!arg || *arg == '\0') fatal("%.200s line %d: Missing port argument.", filename, linenum); - if ((fwd_port = a2port(arg)) == 0) - fatal("%.200s line %d: Bad listen port.", - filename, linenum); + + int slash_count = strcount( arg, '/' ); + int colon_count = strcount( arg, ':' ); + + if( slash_count == 1 || colon_count == 1 ) + { + if (sscanf(arg, "%255[^:]:%5[0-9]&quo...
2005 Feb 22
0
TR: 3.8.1p1 option "permitopennet" added
...ne %lu: Bad permitopennet specification " + "<%.100s>", file, linenum, patterns); + auth_debug_add("%.100s, line %lu: " + "Bad permitopennet specification", file, linenum); + xfree(patterns); + goto bad_option; + } + + if ((porta = a2port(sporta)) == 0) { + debug("%.100s, line %lu: Bad permitopen port <%.100s>", + file, linenum, sporta); + auth_debug_add("%.100s, line %lu: " + "Bad permitopennet port a", file, linenum); + xfree(patterns); + goto bad_option; + } + + if...
2004 Sep 08
0
[PATCH]Extending user@host syntax
...} else host = *av; + + host_key_aliasp = 0; + if (strrchr(host, '%')) { + cp = strrchr(host, '%'); + *cp++ = '\0'; + if (strrchr(cp, ',')) { + host_key_aliasp = strrchr(cp, ','); + *host_key_aliasp++ = '\0'; + } + options.port = a2port(cp); + if (options.port == 0) { + fprintf(stderr, "Bad port '%s'\n", cp); + exit(1); + } + } else if (strrchr(host, ',')) { + host_key_aliasp = strrchr(host, ','); + *host_key_aliasp++ = '\0'; + } + + if (host_key_aliasp) + options.host_k...
2003 Jan 29
0
[PATCH] features for restricted shell environments
...d_opens(patterns) < 0) { debug("%.100s, line %lu: Bad permitopen specification " "<%.100s>", file, linenum, patterns); auth_debug_add("%.100s, line %lu: " @@ -252,16 +251,6 @@ xfree(patterns); goto bad_option; } - if ((port = a2port(sport)) == 0) { - debug("%.100s, line %lu: Bad permitopen port <%.100s>", - file, linenum, sport); - auth_debug_add("%.100s, line %lu: " - "Bad permitopen port", file, linenum); - xfree(patterns); - goto bad_option; - } - if (options...
2001 May 18
0
PATCH: implement delay (sleep) after last tunnelled connection exits
...local_forward(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fwd_port == 0) {
2002 Jan 27
0
[PATCH] Add an exit delay to Openssh-3.0.2p1 for use in tunneling
...ard(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fwd_port == 0) {
2001 Sep 28
1
[PATCH] fix for Linux hang on exit bug in 2.9.9p2
...ard(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fwd_port == 0) {
2004 Jan 19
3
Security suggestion concering SSH and port forwarding.
Hi, sorry if it is the wrong approuch to suggest improvments to OpenSSH, but here comes my suggestion: I recently stumbled upon the scponly shell which in it's chroot:ed form is an ideal solution when you want to share some files with people you trust more or less. The problem is, if you use the scponlyc as shell, port forwarding is still allowed. This can of course be dissallowed in
2016 Jun 02
2
MaxDisplays configuration option
...("%s line %d: Badly formatted port number.", filename, linenum); break; - + case sMaxDisplays: + arg = strdelim(&cp); + if (!arg || *arg == '\0') + fatal("%s line %d: missing value.",filename, linenum); + if ((options->max_displays = a2port(arg)) == -1) { + error("Invalid MaxDisplays '%s'", arg); + return -1; + } + break; case sServerKeyBits: intptr = &options->server_key_bits; parse_int: @@ -2001,6 +2013,7 @@ M_CP_INTOPT(permit_tty); M_CP_INTOPT(permit_user_rc); M_CP_INTOPT...
2017 May 04
5
OpenSSH contract development / patch
On Thu, May 04, 2017 at 09:37:59AM +1000, Adam Eijdenberg wrote: > Hi Devin, have you looked at using openssh certificates to help manage [...] > While the feature has been around for a while now (and is really > useful), there doesn't seem to be huge amount of documentation around > it. I found the following useful when getting a client of my running Yeah, when I wrote about it
2001 Sep 05
2
sshd hangs on logout -- is this a bug?
In the changelog, there is an entry: 20001129 - (djm) Back out all the serverloop.c hacks. sshd will now hang again if there are background children with open fds. Does this mean that this is regarded as expected (and correct) behavior, that should not change in the future, or does it mean that this behavior is a known problem that someone will eventually fix? --Adam -- Adam McKenna
2001 Nov 12
4
Please test -current
Could people please test -current? We will be making a release fairly soon. -d -- | By convention there is color, \\ Damien Miller <djm at mindrot.org> | By convention sweetness, By convention bitterness, \\ www.mindrot.org | But in reality there are atoms and space - Democritus (c. 400 BCE)
2001 Nov 14
6
[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay
...ard(&options, fwd_port, buf, fwd_host_port); break; - + case 'S': + options.sleep = atoi(optarg); + if (options.sleep < 0) { + fprintf(stderr, "Bad delay value '%s'\n", optarg); + exit(1); + } + break; case 'D': fwd_port = a2port(optarg); if (fwd_port == 0) { diff -ur openssh-3.0p1/version.h openssh-3.0p1J/version.h --- openssh-3.0p1/version.h Wed Oct 24 09:20:57 2001 +++ openssh-3.0p1J/version.h Tue Nov 13 16:11:16 2001 @@ -1,3 +1,3 @@ /* $OpenBSD: version.h,v 1.25 2001/10/15 16:10:50 deraadt Exp $ */ -#define SSH_V...
2012 Nov 24
0
ssh-keyscan continuity patch --
...while ((opt = getopt(argc, argv, "Hv46p:T:t:f:")) != -1) { + while ((opt = getopt(argc, argv, "HLv46p:T:t:f:")) != -1) { switch (opt) { case 'H': hash_hosts = 1; break; + case 'L': + log_verbose = 1; + break; case 'p': ssh_port = a2port(optarg); if (ssh_port <= 0) { @@ -714,7 +859,7 @@ fdlim_set(maxfd); fdcon = xcalloc(maxfd, sizeof(con)); - read_wait_nfdset = howmany(maxfd, NFDBITS); + read_wait_nfdset = howmany(maxfd + 1, NFDBITS); read_wait = xcalloc(read_wait_nfdset, sizeof(fd_mask)); for (j = 0; j < fop...
2001 Nov 20
3
problem with AFS token forwarding
Hello, I came across an interoperability problem in OpenSSH 3.0p1 and 3.0.1p1 concerning the AFS token forwarding. That means that the new versions are not able to exchange AFS tokens (and Kerberos TGTs) with older OpenSSH releases (including 2.9p2) and with the old SSH 1.2.2x. In my opinion this problem already existed in Openssh 2.9.9p1, but I have never used this version (I only looked at the