summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
AgeCommit message (Collapse)Author
2008-05-09unbreakMarkus Friedl
ssh -2 localhost od /bin/ls | true ignoring SIGPIPE by adding a new channel message (EOW) that signals the peer that we're not interested in any data it might send. fixes bz #85; discussion, debugging and ok djm@
2008-05-09error-fd race: don't enable the error fd in the select bitmaskMarkus Friedl
for channels with both in- and output closed, since the channel will go away before we call select(); report, lots of debugging help and ok djm@
2008-05-09re-add the USE_PIPES code and enable it.Markus Friedl
without pipes shutdown-read from the sshd does not trigger a SIGPIPE when the forked program does a write. ok djm@
2008-05-09dingo stole my diff hunkDamien Miller
2008-05-09tidy up session multiplexing code, moving it into its own file andDamien Miller
making the function names more consistent - making ssh.c and clientloop.c a fair bit more readable. ok markus@
2008-05-09Try additional addresses when connecting to a port forward destinationDamien Miller
whose DNS name resolves to more than one address. The previous behaviour was to try the first address and give up. Reported by stig AT venaas.com in bz#343 great feedback and ok markus@
2008-05-08Use new channel status confirmation callback system to properly dealDamien Miller
with "important" channel requests that fail, in particular command exec, shell and subsystem requests. Previously we would optimistically assume that the requests would always succeed, which could cause hangs if they did not (e.g. when the server runs out of fds) or were unimplemented by the server (bz #1384) Also, properly report failing multiplex channel requests via the mux client stderr (subject to LogLevel in the mux master) - better than silently failing. most bits ok markus@ (as part of a larger diff)
2008-05-08Make the maximum number of sessions run-time controllable viaDamien Miller
a sshd_config MaxSessions knob. This is useful for disabling login/shell/subsystem access while leaving port-forwarding working (MaxSessions 0), disabling connection multiplexing (MaxSessions 1) or simply increasing the number of allows multiplexed sessions. Because some bozos are sure to configure MaxSessions in excess of the number of available file descriptors in sshd (which, at peak, might be as many as 9*MaxSessions), audit sshd to ensure that it doesn't leak fds on error paths, and make it fail gracefully on out-of-fd conditions - sending channel errors instead of than exiting with fatal(). bz#1090; MaxSessions config bits and manpage from junyer AT gmail.com ok markus@
2008-05-08Implement a channel success/failure status confirmation callbackDamien Miller
mechanism. Each channel maintains a queue of callbacks, which will be drained in order (RFC4253 guarantees confirm messages are not reordered within an channel). Also includes a abandonment callback to clean up if a channel is closed without sending confirmation messages. This probably shouldn't happen in compliant implementations, but it could be abused to leak memory. ok markus@ (as part of a larger diff)
2008-05-08avoid extra malloc/copy/free when receiving data over the net;Markus Friedl
~10% speedup for localhost-scp; ok djm@
2008-05-07sort;Jason McIntyre
2008-05-07push the sshd_config bits in, spotted by ajacoutot@Pierre-Yves Ritschard
2008-05-07Enable the AllowAgentForwarding option in sshd_config (global and matchPierre-Yves Ritschard
context), to specify if agents should be permitted on the server. As the man page states: ``Note that disabling Agent forwarding does not improve security unless users are also denied shell access, as they can always install their own forwarders.'' ok djm@, ok and a mild frown markus@
2008-04-30default to rsa (protocol 2) keys, instead of rsa1 keys; spotted byDamien Miller
larsnooden AT openoffice.org
2008-04-29garbage collect two unused fields in struct mm_master; ok markus@Otto Moerbeek
2008-04-18remove unneccessary parenthesesDamien Miller
2008-04-18macro fixage;Jason McIntyre
2008-04-18introduce sftp extension methods statvfs@openssh.com andDamien Miller
fstatvfs@openssh.com that implement statvfs(2)-like operations, based on a patch from miklos AT szeredi.hu (bz#1399) also add a "df" command to the sftp client that uses the statvfs@openssh.com to produce a df(1)-like display of filesystem space and inode utilisation ok markus@
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-04-05HostbasedAuthentication is supported under Match tooDamien Miller
2008-04-04oops, some unrelated stuff crept into that commit - backout.Damien Miller
spotted by jmc@
2008-04-04ChrootDirectory is supported in Match blocks (in fact, it is most usefulDamien Miller
there). Spotted by Minstrel AT minstrel.org.uk
2008-04-03openssh-5.0Damien Miller
2008-04-02avoid possible hijacking of x11-forwarded connections (back out 1.183)Markus Friedl
CVE-2008-1483; ok djm@
2008-03-27remove trailing whitespace;Jason McIntyre
2008-03-27openssh-4.9Damien Miller
2008-03-26Fix RCS identDamien Miller
2008-03-26add no-user-rc authorized_keys option to disable execution of ~/.ssh/rcDamien Miller
2008-03-25last patch had backwards test; spotted by termim AT gmail.comDamien Miller
2008-03-25ignore ~/.ssh/rc if a sshd_config ForceCommand is specified;Damien Miller
from dtucker@ ok deraadt@ djm@
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-23prefer POSIX-style file renaming over filexfer rename behaviour if the serverDamien Miller
supports the posix-rename@openssh.com extension. Note that the old (filexfer) behaviour would refuse to clobber an existing file. Users who depended on this should adjust their sftp(1) usage. ok deraadt@ markus@
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-03-04crank version; from djmTheo de Raadt
2008-03-02use a union to ensure alignment of the cmsg (pay attention: various otherTheo de Raadt
parts of the tree need this treatment too); ok djm
2008-02-27add an extension method "posix-rename@openssh.com" to perform POSIX atomicDamien Miller
rename() operations. based on patch from miklos AT szeredi.hu in bz#1400; ok dtucker@ markus@
2008-02-22Allow all SSH2 packet types, including UNIMPLEMENTED to reset theDarren Tucker
keepalive timer (bz #1307). ok markus@
2008-02-22closefrom() call was too early, delay it until just before we executeDamien Miller
the user's rc files (if any).
2008-02-20correct boolean encoding for coredump; der Mouse via dugsongMarkus Friedl
2008-02-14When started in configuration test mode (-t) do not check that sshd isMarc Balmer
being started with an absolute path. ok djm
2008-02-13rekey arc4random and OpenSSL RNG in postauth childDamien Miller
closefrom fds > 2 before shell/command execution ok markus@
2008-02-11bump Mdocdate for pages committed in "febuary", necessary becauseJason McIntyre
of a typo in rcs.c;
2008-02-10delay ~ expansion for ChrootDirectory so it expands to the logged-in user'sDamien Miller
home, rather than the user who starts sshd (probably root)
2008-02-10mantion that "internal-sftp" is useful with ForceCommand tooDamien Miller
2008-02-09Document the correct permissions for the ~/.ssh/ directory.Ryan Thomas McBride
ok jmc
2008-02-09missing `)';Jason McIntyre
2008-02-08add sshd_config ChrootDirectory option to chroot(2) users to a directory andDamien Miller
tweak internal sftp server to work with it (no special files in chroot required). ok markus@
2008-02-04link sftp-server into sshd; feedback and ok djm@Markus Friedl
2008-01-31explain how to handle local file names containing colons;Jason McIntyre
requested by Tamas TEVESZ ok dtucker