Commit Graph

639 Commits

Author SHA1 Message Date
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
quamrulmina 9fa909e3df Remote directory on sftp logon is set to user's home directory #7
Fix the reported problem #7. Remote directory set to remote user's home
directory like its is done on openssh on all platforms. Users can then
cd to "Documents" directory. Actual fix was to expand "." to user's home
directory so that pwd showed it correctly rather than just showing a
dot.
2015-10-12 19:24:12 -05:00
arif-pragmasys 7f3709e11f config file to made dsa key auth work 2015-10-12 17:24:46 -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 b72c36c802 Fix USERNAME env variable not set correctly
USERNAME environment variable is set correctly with the remote logged on
username.
2015-10-11 02:38:44 -05:00
quamrulmina 5c3dc0554f Fixed Wrong user profile folder created on first logon through ssh problem
Fixed this #3 problem ticket. We determine domain hostname which created
the authenticated token from the token and then pass it to
LoadUserProfile() Windows API which now correctly creates the user's
home directory name and profile folder.
2015-10-10 19:26:39 -05:00
quamrulmina 47df66126a configure file needed unix style LF format
configure file had Windows DOS style CRLF, but needs to have LF format
2015-10-09 12:11:58 -05:00
quamrulmina f384477c6d ssh client creates .ssh directory and points to well defined files relative to user home directory
Will fix problems like new hosts to be added to known_hosts file which
was failing when .ssh directory did not exist. Also default user's
public keys like id_rsa pairs are picked up properly from the user's
homdir/.ssh base.
2015-10-08 21:52:24 -05:00
arif-pragmasys 673d697444 remove zlib and libssp dependency 2015-10-07 17:03:43 -05:00
quamrulmina 5655e833c9 Ignore test generated data files
ignore test run output files
2015-10-07 14:19:22 -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 522af1564b fix file open() and fstat() issues in tests 2015-10-05 21:22:05 -05:00
quamrulmina ac89e98293 add pty support to ssh client
pty and tty support was not enabled or working in the code. Without pty
support, ssh client was very non functional - e.g. openssh linux server
prompt would not come through. Now ssh client works much better in
interactive mode ( uses pty).
2015-10-05 15:46:37 -05:00
quamrulmina 989b8a9f01 improved sshd child monitor code to avoid annoying "broken pipe" msg from Linux clients
take child detection handle out from select mux after a child process is
detected to have exited so that other code exit handlings can run its
course
2015-10-02 18:35:08 -05:00
quamrulmina 1915208a54 Fixed sshd process not ending when sftp-server and the shell ended
NoMachine did not finish coding child process ending detection logic.
Added the needed code so that child process handle is added to the
handles that WaitForMultipleObjects() waits for in nomachine select()
implementation in socket.c. Otherwise select() would be stuck in
read/write dectection even when the process of interest has exited.
2015-10-02 14:18:49 -05:00
quamrulmina 3f71c81f49 sftp-server.exe put now works
Fixed sftp-server put verb not working. Tested from out sftp client and
linux fedora openssh 6.9p1 sftp clients in transferring small and large
files using both get and put verbs.
2015-10-01 19:54:56 -05:00
quamrulmina 6b70a283cb sshd.exe hostkeys loading fix
sshd.exe would not find ssh_host keys without this change. Chnage made
for test running reveresed
2015-10-01 01:20:04 -05:00
quamrulmina cae05764b0 fix sftp.exe client to transfer files in binary mode
sftp.exe client were adding crlf to each lines of files. It should
transfer in binary mode. set O_BINARY flag on in _open calls.
2015-10-01 01:17:11 -05:00
quamrulmina 5b06ebbbb5 sftp-server.exe first code drop that works
sftp-server.exe code modified to work in Windows as NoMachine never
finished it to work. I/O handling to work as a subsystem and
openssh7.1p1 sshbuf_new() buffer system code had to be used. sshd_config
file need location of sftp subsystem to be specified.
2015-09-30 20:26:32 -05:00
arif-pragmasys df2ea3875e test directory structure image 2015-09-30 17:19:05 -05:00
arif-pragmasys aa2a62ddde regress test related make file update for win32 2015-09-30 17:06:44 -05:00
arif-pragmasys 044abadd35 fix end of line for fixalgorithm 2015-09-30 16:56:56 -05:00
arif-pragmasys 9a59a33c76 increase test coverage 2015-09-30 16:24:06 -05:00
arif-pragmasys 92eae9ee02 7.1p1 original test files 2015-09-29 13:59:44 -05:00
quamrulmina 720b3620fa sftp.exe/ssh.exe - write new line after a password is read in non-echo mode
ssh.exe when invoked from sftp.exe and scp.exe external progam needs to
show a newline after data read after a prompt for next data to look
proper
2015-09-28 01:01:27 -05:00
quamrulmina 6d167ae0f6 fix sftp.exe client to work using password authentication
ssh.exe client invoked underneath was not able to send password prompt
and read password from user as stdin and stdout handles were redirected
to sockets by sftp.exe ; stderr which is not redirected is used to show
prompt to users and data is read from console
2015-09-27 23:54:10 -05:00
arif-pragmasys 0d3a933c2a custom ssh and sshd config for win32 2015-09-23 14:51:40 -05:00
arif-pragmasys 2e710ab203 changed ssh_config default settings to allow dsa keys. 2015-09-23 14:38:33 -05:00
arif-pragmasys 0faa40eae3 sshd.exe bug fix, freeing same buffer twice 2015-09-23 01:00:20 -05:00
arif-pragmasys eb2f68ccae sshd works as a service on windows 2015-09-21 20:34:49 -05:00
arif-pragmasys 6b2d437a8f Makefile template change to accomodate 7.1p1 changes 2015-09-21 16:22:07 -05:00
arif-pragmasys f4b56e2280 nomachine + additional changes applied to openssh 7.1p1 source base 2015-09-21 16:03:51 -05:00
arif-pragmasys 47c23e53d7 screenshots for debugger setup 2015-09-19 14:09:29 -05:00
arif-pragmasys c0f29754fc openssh build sequence
openssh build sequence
2015-09-14 17:24:12 -05:00
arif-pragmasys 25cd576ea2 build config chnages
* fix config.ac bugs
* fix line ending for shell scripts
* ignore dynamically generated files while checking in
2015-09-11 18:23:40 -05:00
Arif Saikat 2069b39283 image to show diff between openssh 5.9p1 and nomachine 2015-09-10 16:37:43 -05:00
Arif Saikat 671fad006d replace 4.7.3 with 4.9.2 mingw c++ compiler
Latest cygwin ships with 4.9.2 version of 64 bit mingw c++ compiler,
hence switching to that
2015-09-10 14:16:35 -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
Steve Lee 76a4ac6b7e Initial commit 2015-09-08 09:47:33 -07:00