41 Commits

Author SHA1 Message Date
Yanbing Wang
dbbe15ac80 Source snapshot from Powershell/openssh-portable:latestw_all 2018-02-28 17:13:27 -08:00
Yanbing Wang
d6ce465b15 Source snapshot from Powershell/openssh-portable:latestw_all 2017-11-18 18:23:07 -08:00
Yanbing Wang
a24021252b Source snapshot from Powershell/openssh-portable:latestw_all 2017-10-17 15:52:28 -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
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
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
Ray Hayes
9291dde274 Merge with PowerShell\L1-Prod. 2016-10-20 16:37:56 -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
69be768f2e Fixed wrong macro 2016-09-26 12:46:51 -07:00
Manoj Ampalam
168afecec7 Reverting unwanted indentation changes 2016-09-26 12:46:21 -07:00
Manoj Ampalam
0f1fcb322a Reverting unwanted code style changes 2016-09-23 11:54:45 -07:00
Manoj Ampalam
e8c353d766 missing changes 2016-09-23 11:29:55 -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
manojampalam
689073e46a fix for 2012 read issue and refactored changes in libssh 2016-03-22 23:18:46 -07:00
manojampalam
bf74d01af3 Removing #ifdefs around fcntl(FD_CLOSEXEC) 2016-03-19 13:25:43 -07:00
manojampalam
2d47fc533a Fixing bug in async connect resulting in TCP fwding failures. scp on board (not functional yet) 2016-03-13 22:03:03 -07:00
manojampalam
5cb9fb09ed shell host is now the default shell process in sshd 2016-03-13 11:21:09 -07:00
manojampalam
173b000a76 Enabled sshd debug mode in windows, fixed bug in STDIO close(), and tty condition in client_loop() 2016-03-11 14:31:47 -08:00
manojampalam
41f53d605c Movied ansi parser out of channel code and put it in a filter 2016-03-09 20:32:02 -08:00
manojampalam
e4c233e95c 3-6 C12
Changes enabling ssh.exe on the new posix wrapper
2016-03-06 21:43:59 -08: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
dkulwin
d34621a289 Force defines for certain errno values.
The visual studio errno.h file is conflicting with no-machine errno
constants.  Force the constants we need and define
_CRT_NO_POSIX_ERROR_CODES to avoid redefining them.  This fixes port
forwarding for visual studio implementation.
2015-11-10 15:51:24 -06:00
quamrulmina
9c645a210f Block arrow keys in sshd server so that it is not passed to shell/cmd or echoed
For now we avoid sending the 4 arrow keys to the shell or echo it to the
remote side. as cmd.exe or powershell does not process it correctly in
stream output device mode we run win32 sshd server.
2015-11-06 17:13:57 -06:00
quamrulmina
df50964dfc Fix regression issue of ssh not exiting after sftp client ends
Add smarter logic when reading 0 bytes is ok (only when tty console read
)
2015-11-06 12:05:46 -06:00
quamrulmina
264509c2f4 Revert "Fix ssh not exiting when sftp ends"
This reverts commit 2ee6bd1b093dfb1f9ea60b3d0ae2f133223848ae.
2015-11-06 11:37:00 -06:00
quamrulmina
2ee6bd1b09 Fix ssh not exiting when sftp ends
It was a regression bug..
2015-11-06 11:00:14 -06:00
quamrulmina
bf2766ba2d Fix sshd server to not send back space erase when no character in the line
sshd server keeps count of characters typed on a line and will not send
backspace erase to the client if no character is there to erase on the
line even if the users is typing backspaces. This avoids erase of shell
prompt characters for visual user friendliness.
2015-11-04 17:10:40 -06:00
quamrulmina
fad3c4ffc6 Fixed ssh client problem of showing error outputs correctly
Problem was error data received were shown after output data. But order
should be kept to how it is received from the sshd server. Now we show
error and output data in the way we received from the sshd sever. Thus
typing "di" in place of "dir" in cmd shell will show the error message
correctly before the next shell prompt comes through.
2015-10-30 19:36:26 -05:00
quamrulmina
d4c8ef9ac5 Improved SSH client interactive mode and fixed control-c to work
Console API is now used for interactive tty mode. Thus ssh.exe client
can now pass each character to remote side as one types so that programs
like more works correctly. Control-c now will stop the remote program
instead of exiting the ssh.exe.
2015-10-27 19:05:38 -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
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
de4ae13f76 ssh.exe client sends current window size and TERM value when pty-req is made
This was not coded before for Win32 port. Remote sshd server is now
aware of our client's screen size and VT/ANSI TERM emulation.
2015-10-20 18:25:06 -05:00
quamrulmina
7aac59e524 Add ANSI parsing engine and console draw support to ssh client
Makes the ssh.exe client more useable in interactive mode with ANSI
color and a console screen support.
2015-10-15 17:25:39 -05:00
quamrulmina
55f2ec6825 Add pty mode support code
Pty mode code added so that sshd server can do remote echo, backspace
processing. etc and ssh.exe client does not have to do local echo. We
can enrich it in future for more features and allowing programs like
powershell to run interactive. Pty mode is central for interactive use
and will be built using Windows console instead of termios that
Linux/Unix uses.
2015-10-12 13:49:15 -05:00
quamrulmina
545dda2c8b Add ANSI processing in ssh client pty code to detect LF to CRLF mode
Whether LF should be changed to CR-LF is determined by what the remote
sshd server wants. Sequences like ESC[20h is sent by sshd servers in pty
ANSI mode. Unix servers usually want LF and Windows servers CR-LF. Added
simple ANSI data check now for pty use in interactive mode. Need to
expand to simple ANSI engine in future for processing other ANSI
terminal attributes.
2015-10-07 14:06:44 -05:00
arif-pragmasys
f4b56e2280 nomachine + additional changes applied to openssh 7.1p1 source base 2015-09-21 16:03:51 -05:00
Arif Saikat
fb17410f60 Original Nomachine 5.9p1 source code
Original Nomachine 5.9p1 source code
2015-09-09 14:08:05 -05:00