Guilhem Moulin
dc01a8edd4
Don't display the MOTD when an explicit command is run.
...
(possibly via authorized_keys(5) restrictions), even when a
pseudo-terminal has been allocated for the session. In other words,
only display the MOTD when the server starts the user's default shell.
2015-10-21 22:08:47 +08:00
Matt Johnston
1a4db21fe4
buf_getstring and buf_putstring now use non-unsigned char*
2015-06-04 23:08:50 +08:00
Gaël PORTAY
292656d899
Turn signame local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
05b36b484e
Turn ChanSess's cmd attribute into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
e5ce3fc51b
Turn type local variable into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
9f97511356
Turn ChanSess's tty and term attributes into char *
2015-05-05 20:39:14 +02:00
Gaël PORTAY
224b16b247
Fix pointer differ in signess warnings [-Werror=pointer-sign]
2015-05-05 20:39:13 +02:00
Gaël PORTAY
ef0aac432c
Fix unused make_connection_string() warning [-Werror=unused-function]
...
This function is used when USE_VFORK is unset.
2015-05-05 20:39:13 +02:00
Matt Johnston
9adfff5c1a
Revert accidental commented out signal handlers
2015-02-24 22:23:32 +08:00
Matt Johnston
21bed0d21a
Free memory before exiting. Based on patch from Thorsten Horstmann.
...
Client side is not complete.
2015-02-24 22:01:33 +08:00
Thorsten Horstmann
ab9439519a
Fix for old compilers, variable declarations at beginning of functions
...
and /**/ comments
2015-02-24 20:51:18 +08:00
Matt Johnston
776d908703
Combine code for SSH_CONNECTION and SSH_CLIENT
2014-10-21 22:33:49 +08:00
Ryan Cleere
957450582f
Add SSH_CLIENT environment variable
2014-10-20 12:59:47 -05:00
Matt Johnston
6d2d3669f3
Make keepalive handling more robust, this should now match what OpenSSH does
2014-08-19 23:08:56 +08:00
Matt Johnston
0e7409c7ff
Make sure the check_close() handler runs when a server child process exits
2014-07-28 23:23:49 +08:00
Matt Johnston
da57dd13c5
Set tcp priority as follows:
...
if (connecting || ptys || x11) tos = LOWDELAY;
else if (tcp_forwards) tos = 0;
else tos = BULK;
TCP forwards could be either lowdelay or bulk, hence the default priority.
2014-07-16 22:53:32 +08:00
Matt Johnston
1dc5312f00
- Save errno in signal handlers
...
- Use _exit() in segv handler
2014-02-15 21:13:57 +08:00
Matt Johnston
998d6cdfc4
- Sockets are set to lowdelay priority initially to improve conneciton setup
...
time
- Set non-pty connections to bulk for client and server
2013-12-03 00:04:48 +08:00
Catalin Patulea
ddc10b2d0c
Set IPTOS_LOWDELAY on PTY sessions only
2013-12-02 22:55:43 +08:00
Matt Johnston
cbe63bbabe
rename random.h to dbrandom.h since some OSes have a system random.h
...
--HG--
rename : random.c => dbrandom.c
rename : random.h => dbrandom.h
2013-11-14 22:05:47 +08:00
Matt Johnston
e7917c16c9
Remove accidental one second sleep leftover from debugging
2013-08-12 22:41:00 +08:00
Matt Johnston
d5ccc32b4d
Improve RNG seeding.
...
Try to read from /dev/urandom multiple times, take input from extra sources,
and use /dev/random when generating private keys
2012-06-29 23:19:43 +08:00
Andrey Mazo
d4a14fcb3d
Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.
...
Got rid of ENABLE_AGENTFWD macro.
2012-03-26 16:17:16 +04:00
Matt Johnston
49b79fa02d
Rename HAVE_FORK to USE_VFORK
...
It makes it a bit more obvious why there's a test there since HAVE_FORK
is the normal case.
2012-04-09 20:35:13 +08:00
Mike Frysinger
c957edbe75
check for fork() and not __uClinux__
2012-04-08 01:50:52 -04:00
Matt Johnston
a15fc009da
- Initialise sa_mask properly
2011-12-04 05:41:46 +08:00
Matt Johnston
6c4390c848
- Merge
2012-02-21 23:00:30 +08:00
Matt Johnston
a3188b44f0
- Make sure sa_mask is set
2012-02-21 22:57:19 +08:00
Matt Johnston
aec23e5f79
- Fix use-after-free if multiple command requests were sent. Move
...
the original_command into chansess struct since that makes more sense
2011-12-04 05:31:25 +08:00
Matt Johnston
2303d0fd09
Avoid segfault when handling childpid race
...
--HG--
extra : convert_revision : 8845727a7e2b096015dbb76d8f3df13c9acee7da
2011-03-31 14:42:11 +00:00
Matt Johnston
53fc7eaf03
Compile fix for when both client and server agent forwarding is disabled
...
--HG--
extra : convert_revision : 8a608f0ed5e4b491dba4bf330e560636ec7376fd
2011-02-28 13:39:18 +00:00
Matt Johnston
38ed870ffe
Improve capitalisation for all logged strings
...
--HG--
extra : convert_revision : 997e53cec7a9efb7413ac6e17b6be60a5597bd2e
2011-02-23 15:50:30 +00:00
Matt Johnston
8bad5d61fd
don't #include "utmp.h"
...
--HG--
extra : convert_revision : a014a978f213e6ff424e7d10794ae426375f3191
2010-03-04 14:50:19 +00:00
Matt Johnston
4dfb834f7c
Move remotehost into svr_ses structure since we can't look it up
...
once we've forked (the connection socket has been closed).
Fixes inetd mode.
--HG--
extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
2009-09-05 11:40:00 +00:00
Matt Johnston
4e9f22c602
- Set $SSH_CONNECTION
...
- Document environment variables in the manpage
--HG--
extra : convert_revision : 1a93c6112f00730f5cd21a853d3bd5ca8079f725
2009-09-02 14:47:12 +00:00
Matt Johnston
f88bed7a30
Rearrange getaddrstring() etc
...
--HG--
extra : convert_revision : 8a18c4a60aeaec085923d13d98fa0f93c506ceba
2009-09-01 16:38:26 +00:00
Matt Johnston
ccd02552dd
- set $SSH_TTY environment variable
...
- remove extraneous (crash causing) printf()
--HG--
extra : convert_revision : cf4b256bf6785be384eca32f7b229b89e58539eb
2009-08-31 15:25:39 +00:00
Matt Johnston
4b1f9e50f2
- set $SSH_ORIGINAL_COMMAND if a command is forced, and log it
...
if LOG_COMMANDS is set
--HG--
extra : convert_revision : d9e8aa0ecbe7607285fa4f96f0d6f9b1523719d8
2009-08-26 14:09:22 +00:00
Matt Johnston
bb8234c2f1
Agent forwarding works
...
--HG--
branch : agent-client
extra : convert_revision : eb0dae4b62e243ba37a897beb7ba81a4f637d8b3
2009-07-30 15:14:33 +00:00
Matt Johnston
51dcfc06dc
- Set a default path, since bash won't export one otherwise (though it will set
...
one, leading to mysterious problems)
- Rearrange some options
--HG--
extra : convert_revision : 6e81becf6e96479e10d9244186a900fab7079bf8
2008-11-05 13:30:23 +00:00
Matt Johnston
511f6555c9
- Add Counter Mode support
...
--HG--
extra : convert_revision : 5225162bdf32d70b58b6d3ae375a290326c59f3a
2008-09-29 13:53:31 +00:00
Matt Johnston
6fe6393acb
propagate from branch 'au.asn.ucc.matt.dropbear.pubkey-options' (head 537a6ebebb46424b967ffe787f0f8560e5f447e8)
...
to branch 'au.asn.ucc.matt.dropbear' (head 10b2f286b9886364db39dfbb4f8f46e49e345d87)
--HG--
extra : convert_revision : 6fd2597077a4e2421bf45388e058d15606f6dd74
2008-09-23 13:16:22 +00:00
Matt Johnston
12929e8cf0
- Add run_shell_command() function to run a "sh -c" command, handling
...
lots of the work that exechild did (and can be shared by client -J option)
--HG--
extra : convert_revision : a15dfd8017af8212b3b227f18ce2539dd471f7f6
2008-09-15 14:04:55 +00:00
Matt Johnston
7ac24b10b9
- Generalise spawn_command function
...
--HG--
extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
2008-09-15 13:41:18 +00:00
Matt Johnston
d7c1e58217
- Get rid of some ugly #defines
...
--HG--
extra : convert_revision : 4cfa02494ded17cdb068ec66581b720a5a0fd70b
2008-09-15 13:06:40 +00:00
Matt Johnston
c0ce2a6a97
* Patch from Frédéric Moulins adding options to authorized_keys.
...
Needs review.
--HG--
branch : pubkey-options
extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
2008-09-08 15:14:02 +00:00
Matt Johnston
e277059339
fix up after merge
...
--HG--
extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
2008-01-13 04:02:08 +00:00
Matt Johnston
a3b5d3c8b3
merge of '295b11312e327fe6c4f33512674ea4a1a9790344'
...
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb'
--HG--
extra : convert_revision : d9cc9067a1a17f312a7349781f2dbbaf2890d5a6
2008-01-13 04:01:46 +00:00
Matt Johnston
bb0548b3b0
Make a copy of passwd fields since getpwnam()'s retval isn't safe to keep
...
--HG--
extra : convert_revision : 295b11312e327fe6c4f33512674ea4a1a9790344
2008-01-13 03:55:59 +00:00
Matt Johnston
b2ac4eb29b
Actually use ~/.hushlogin rather than ~/hushlogin to ignore motd.
...
--HG--
extra : convert_revision : 426d7aeea950d007ed7ef9f03f9f40b138a769cb
2007-11-02 15:03:16 +00:00