summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
AgeCommit message (Collapse)Author
2009-12-20fix an incorrect magic number and typo in PROTOCOL; bz#1688Damien Miller
report and fix from ueno AT unixuser.org
2009-12-20When passing user-controlled options with arguments to other programs,Philip Guenthe
pass the option and option argument as separate argv entries and not smashed into one (e.g., as -l foo and not -lfoo). Also, always pass a "--" argument to stop option parsing, so that a positional argument that starts with a '-' isn't treated as an option. This fixes some error cases as well as the handling of hostnames and filenames that start with a '-'. Based on a diff by halex@ ok halex@ djm@ deraadt@
2009-12-19try to clarify ChrootDirectory pathname argument a bit; resulting fromKevin Steves
a question on openssh-unix-dev. ok jmc@
2009-12-11switch from 35 to the more common value of RSA_F4 == (2**16)+1 == 65537Markus Friedl
for the RSA public exponent; discussed with provos; ok djm@
2009-12-06fix potential divide-by-zero in sftp's "df" output when talking to a serverDarren Tucker
that reports zero files on the filesystem (Unix filesystems always have at least the root inode). From Steve McClellan at radisys, ok djm@
2009-12-06use socklen_t for getsockopt optlen parameter; reported byDamien Miller
Steve.McClellan AT radisys.com, ok dtucker@
2009-12-06zap unused variable and strlen; from Steve McClellan, ok djmDarren Tucker
2009-11-22make passing of zero-length arguments to ssh safe byAlexander Hall
passing "-<switch>" "<value>" rather than "-<switch><value>" ok dtucker@, guenther@, djm@
2009-11-20correct off-by-one in percent_expand(): we would fatal() when tryingDamien Miller
to expand EXPAND_MAX_KEYS, allowing only EXPAND_MAX_KEYS-1 to actually work. Note that nothing in OpenSSH actually uses close to this limit at present. bz#1607 from Jan.Pechanec AT Sun.COM
2009-11-20Use the HostKeyAlias when prompting for passwords. bz#1039, ok djm@Darren Tucker
2009-11-20bz#1588 change "Connecting to host..." message to "Connected to host."Damien Miller
and delay it until after the sftp protocol connection has been established. Avoids confusing sequence of messages when the underlying ssh connection experiences problems. ok dtucker@
2009-11-20Warn but do not fail if stat()ing the subsystem binary fails. This helpsDarren Tucker
with chrootdirectory+forcecommand=sftp-server and restricted shells. bz #1599, ok djm.
2009-11-19bz#1606: error when an attempt is made to connect to a serverDamien Miller
with ForceCommand=internal-sftp with a shell session (i.e. not a subsystem session). Avoids stuck client when attempting to ssh to such a service. ok dtucker@
2009-11-17fix incorrect exit status when multiplexing and channel ID 0 is recycledDamien Miller
bz#1570 reported by peter.oliver AT eon-is.co.uk; ok dtucker
2009-11-11fix race condition in x11/agent channel allocation: don't read afterMarkus Friedl
the end of the select read/write fdset and make sure a reused FD is not touched before the pre-handlers are called. with and ok djm@
2009-11-10Set close-on-exec on various descriptors so they don't get leaked toDarren Tucker
child processes. bz #1643, patch from jchadima at redhat, ok deraadt.
2009-11-10clarify that StrictModes does not apply to ChrootDirectory. PermissionsDamien Miller
and ownership are always checked when chrooting. bz#1532
2009-11-10explain the constraints on LocalCommand some more so people don'tDamien Miller
try to abuse it.
2009-10-28tweak previous;Jason McIntyre
2009-10-28Allow to set the rdomain in ssh/sftp/scp/sshd and ssh-keyscan.Reyk Floeter
ok markus@
2009-10-24Request roaming to be enabled if UseRoaming is true and the serverAndreas Gunnarsson
supports it. ok markus@
2009-10-24Do the actual suspend/resume in the client. This won't be useful untilAndreas Gunnarsson
the server side supports roaming. Most code from Martin Forssen, maf at appgate dot com. Some changes by me and markus@ ok markus@
2009-10-24Define the KEX messages used when resuming a suspended connection.Andreas Gunnarsson
ok markus@
2009-10-24Dummy implementation of wait_for_roaming_reconnect() for the server side.Andreas Gunnarsson
It doesn't do anything yet but is needed for upcoming changes in roaming_common.c ok markus@
2009-10-24client_loop() must detect if the session has been suspended and resumed,Andreas Gunnarsson
and take appropriate action in that case. From Martin Forssen, maf at appgate dot com ok markus@
2009-10-24Let the client detect if the server supports roaming by lookingAndreas Gunnarsson
for the resume@appgate.com kex algorithm. ok markus@
2009-10-24Declarations needed for upcoming changes.Andreas Gunnarsson
ok markus@
2009-10-24ssh-keygen now uses AES-128 for private keysDarren Tucker
2009-10-23disallow a hostile server from checking jpake auth by sending anDamien Miller
out-of-sequence success message. (doesn't affect code enabled by default)
2009-10-22switch from 3DES to AES-128 for encryption of passphrase-protectedDamien Miller
SSH protocol 2 private keys; ok several
2009-10-22write UNIX-domain in a more consistent way; while here, replace aIgor Sobrado
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2009-10-17sort flags.Igor Sobrado
2009-10-11mention the host name that we are looking for in check_host_in_hostfile()Damien Miller
2009-10-11d_type isn't portable so use lstat to get dirent modes. Suggested by andDarren Tucker
"looks sane" deraadt@
2009-10-08some tweaks now that protocol 1 is not offered by default; ok markusJason McIntyre
2009-10-08disable protocol 1 by default (after a transition period of about 10 years)Markus Friedl
ok deraadt
2009-10-06bz#1596: fflush(NULL) before exec() to ensure that everying (motdDamien Miller
in particular) has made it out before the streams go away.
2009-10-01fix a castAlexander von Gernler
ok djm@ markus@
2009-09-01fix a race condition in ssh-agent that could result in a wedged orDamien Miller
spinning agent: don't read off the end of the allocated fd_sets, and don't issue blocking read/write on agent sockets - just fall back to select() on retriable read/write errors. bz#1633 reported and tested by "noodle10000 AT googlemail.com"; ok dtucker@ markus@
2009-08-31document -e and -h; prodded by jmc@Damien Miller
2009-08-31check correct variable for error message, spotted by martynas@Damien Miller
2009-08-27Do not fall back to adding keys without contraints (ssh-add -c / -t ...)Damien Miller
when the agent refuses the constrained add request. This was a useful migration measure back in 2002 when constraints were new, but just adds risk now. bz #1612, report and patch from dkg AT fifthhorseman.net; ok markus@
2009-08-27allow setting an explicit umask on the commandline to override whateverDamien Miller
default the user has. bz#1229; ok dtucker@ deraadt@ markus@
2009-08-27force use of correct hash function for random-art signature displayDamien Miller
as it was inheriting the wrong one when bubblebabble signatures were activated; bz#1611 report and patch from fwojcik+openssh AT besh.com; ok markus@
2009-08-27allow setting an explicit umask on the commandline to override whateverDamien Miller
default the user has. bz#1229; ok dtucker@ deraadt@ markus@
2009-08-20subsystem_flag is defined in ssh.c so it's extern; ok djmDarren Tucker
2009-08-19ether -> either;Jason McIntyre
2009-08-18fix "get" command usage, spotted by jmc@Damien Miller
2009-08-18recursive transfer support for get/put and on the commandlineDamien Miller
work mostly by carlosvsilvapt@gmail.com for the Google Summer of Code with some tweaks by me; "go for it" deraadt@