56 Commits

Author SHA1 Message Date
Yanbing Wang
7580216f04 Source snapshot from Powershell/openssh-portable:latestw_all 2017-06-30 18:36:09 -07:00
Yanbing Wang
944505e199 Source snapshot from Powershell/openssh-portable:latestw_all 2017-06-15 18:41:19 -07:00
bingbing8
2c3a1a95d0 Source snapshot from Powershell/openssh-portable:latestw_all 2017-06-02 17:25:34 -07:00
bingbing8
6a86fdd825 Source snapshot from Powershell/openssh-portable:latestw_all 2017-05-12 15:16:52 -07:00
Manoj Ampalam
c156f1404c Source snapshot from Powershell/openssh-portable:latestw_all 2017-04-16 13:54:14 -07:00
Manoj Ampalam
8c43479844 Source snapshot from Powershell/openssh-portable:latestw_all 2017-04-04 12:35:11 -07:00
Manoj Ampalam
776483fb4e Source snapshot from Powershell/openssh-portable:latestw_all 2017-03-14 12:36:27 -07:00
Manoj Ampalam
c8b8c4b82a Source snapshot from Powershell/openssh-portable:latestw_all 2017-02-15 22:47:07 -08:00
Manoj Ampalam
e404237322 Source snapshot from Powershell/openssh-portable:latestw_all 2017-01-30 00:14:58 -08:00
Manoj Ampalam
a4b577b5a0 Source snapshot from Powershell/openssh-portable:latestw_cwb 2017-01-03 14:46:33 -08:00
Manoj Ampalam
69ea992e00 Source snapshot from Powershell/openssh-portable:latestw_cwb 2016-12-17 23:06:42 -08:00
Manoj Ampalam
7c62169a93 Source snapshot from Powershell\openssh-portable 2016-11-29 14:50:13 -08:00
Manoj Ampalam
b47cc46d4f Missing headers causing link errors in X86 builds 2016-10-23 12:57:29 -07:00
manojampalam
5831b09b84 Fix to regression using scp without setting ssh bin path in PATH variable 2016-10-22 21:00:59 -07:00
manojampalam
74db643add Fix to issue with absolute/relative paths for subsystem processes 2016-10-21 15:08:39 -07:00
manojampalam
ad128b5c68 Added user environment variables to session 2016-10-20 22:49:17 -07:00
manojampalam
46a6cc9c7c Fixes to hang on TTY child process exit 2016-10-20 22:14:42 -07:00
manojampalam
bc83d7d29e Fixes to some issues 2016-10-19 23:38:41 -07:00
Manoj Ampalam
6239a2847b session refactoring part 2 2016-10-19 22:40:34 -07:00
Manoj Ampalam
e626a748ca session refactoring part 1 2016-10-19 14:38:33 -07:00
Manoj Ampalam
601c2b6e81 cleaned up do_exec on Windows 2016-10-18 23:20:24 -07:00
Manoj Ampalam
122ed4bf4d Refactored do_exec* calls 2016-10-18 21:42:10 -07:00
Manoj Ampalam
c25f6a0d5e Converged Win Unix code in auth.c, move utf routine declarations to separate header 2016-10-16 01:00:27 -07:00
Manoj Ampalam
52bdef5cb7 pwd.c refactoring and clean up 2016-10-14 00:02:19 -07:00
Manoj Ampalam
68250e4059 Fix: Temporary workaround for scrolling issue 2016-09-30 22:26:43 -07:00
Manoj Ampalam
6c94fae80a Fix: PTY was not accounting for initial TTY size 2016-09-30 14:50:33 -07:00
Manoj Ampalam
a521817e49 Fix - attach PTY only when requested 2016-09-30 13:22:01 -07:00
Manoj Ampalam
f5226a3b70 Added PTY support to account for client TTY window size changes 2016-09-29 17:27:21 -07:00
Manoj Ampalam
c3b785a140 Manual Merge change 3c6b77b4fdc45ada3a8b907cd4af6f73dfd70e66
3c6b77b4fdc45ada3a8b907cd4af6f73dfd70e66 Ray Hayes <rayhayes@rhbe.net>
7/28/2016 12:10:04 PM -07:00 First version with console changes.
2016-09-22 17:33:17 -07:00
Manoj Ampalam
071b0d49e5 Env:SSH_ORIGINAL_COMMAND added when needed
https://github.com/PowerShell/Win32-OpenSSH/issues/243
2016-07-01 11:25:59 -07:00
Manoj Ampalam
eb9db70558 Delete unwanted code in session cleanup 2016-04-04 14:54:54 -07:00
manojampalam
77b0ec86df SIGCHLD and waitpid implementation with sshd on board 2016-03-25 21:22:13 -07:00
Manoj Ampalam
31989d6f07 sshd changes 2016-03-25 16:28:25 -07:00
Manoj Ampalam
df9a548ef3 Remove additional token references and calls to ModifyReghtsToDesktop from session 2016-03-24 15:08:52 -07:00
Manoj Ampalam
268bdeb662 Removed code relying on USE_NTCREATETOKEN 2016-03-24 14:57:18 -07:00
Manoj Ampalam
7ca05346bb signal prototypes 2016-03-16 13:43:14 -07:00
manojampalam
238c80b33d initial SIGCHLD implementation 2016-03-14 23:00:27 -07:00
manojampalam
5cb9fb09ed shell host is now the default shell process in sshd 2016-03-13 11:21:09 -07:00
Manoj Ampalam
0e1f1c1cb3 sshd enabling changes 2016-03-10 15:18:09 -08:00
quamrulmina
f3c841824e Improve sshd Pluggable remote console enhancements
pluggable binaries are to reside in the same directory where sshd.exe is
located
2016-02-02 02:02:56 -06:00
quamrulmina
829f799ad9 Add pluggable access to shell session so that cmd & powershell runs like natively
#define WIN32_PRAGMA_REMCON in config.h.vs or in channels.c, session.c
and sshpty.c files . cmdserver.exe runtime in Pragma Fortress SSH
package needed to access shell session.
2016-02-01 04:10:36 -06:00
quamrulmina
802d9a3349 Fix #71; Env vars like APPDATA, LOCALAPPDATA etc in sshd are set correctly now.
APPDATA, LOCALAPPDATA, HOMEDRIVE, HOMEPATH set correctly in sshd server
2016-01-27 18:20:11 -06:00
dkulwin
25e52cb498 Add prototypes for functions returning pointers and modify how some arrays are defined
Functions not declared before use, are define as returning an int.
Under 64-bit this can result in corrupted pointers being returned.

Also, Visual studio doesn't like it when you use variables to declare
array sizes, static values always work though.
2015-11-04 19:34:15 -06:00
quamrulmina
889e58c056 Fix ssh client not executing shell cmd given as argument
"ssh user@host whoami" now works and will show the whoami command
output. sshd server was fine but ssh client was not working.
2015-10-28 18:11:52 -05:00
quamrulmina
1c258ec0ae Fix control-c working in sshd server
control-c is handled correctly by sshd server and passed to shell for it
to process which usually means terminating the current program or
programs.
2015-10-26 15:19:27 -05:00
quamrulmina
1178689011 sshd pty console screen size set to what ssh client requests
Initial remote console screen size set correctly in sshd interactive
session to the value we received from the ssh client in the pty-req
request.
2015-10-25 23:54:56 -05:00
quamrulmina
a3d0255b69 Fix Console Insertion issue of multiple sshd interactive sessions not working
We create console for each sshd session from CONIN$ and CONOUT$ before
starting shell cmd.exe
2015-10-25 01:53:38 -05:00
quamrulmina
339912c24b Use a Console as input to drive a shell in sshd.exe
Fixes issues like cmd.exe shell not handling backspace, control-c.
Control-c is still a work in progress and will be fixed but backspace
processing works. This work when complete will make cmd.exe shell and
powershell work better for interactive users.
2015-10-23 19:11:29 -05:00
quamrulmina
44a6f54fc4 sshd updates USERDOMAIN env variable correctly
USERDOMAIN environment variable was not being updated by sshd before s
shell or subsystem was started, hence it was left pointing to local
logged on user;'s domain. Now we set it correctly for the remote ssh
user's domain or local account
2015-10-12 23:58:57 -05:00
quamrulmina
ded4138b58 sshd server puts remote user@target in the console prompt
Usability improvement fix ( issue #6 ). sshd.exe puts remote user and
host info on the console prompt. user@target $P$G is set as cmd.exe
PROMPT via environment variable.
2015-10-12 22:53:21 -05:00