Commit graph

36 commits

Author SHA1 Message Date
billchurch
cd8b829675 updating logging
added ip:port logging, updated verbiage for configuration file log
2018-02-17 01:23:59 -05:00
billchurch
7b5224d7d1 Revert "Revert "housekeeping""
This reverts commit 67b15e1c2f.
2018-02-17 01:06:37 -05:00
billchurch
67b15e1c2f Revert "housekeeping"
This reverts commit bc19432dfa.
2018-02-17 01:05:52 -05:00
billchurch
bc19432dfa housekeeping
Move bulk of server .js file files to /server, all client related files
live in /client (including /public), webpack scripts now live in
/scripts, cleanup of paths in /client/src/js/index.js and webpack.js.
2018-02-16 23:48:00 -05:00
billchurch
2b12825a0c moving files around to get rid of unneeded directories 2017-12-12 12:41:54 -05:00
billchurch
d849f7432e adding readyTimeout option, updating packages
adding readyTimeout option, updating packages
2017-08-21 09:21:52 -04:00
billchurch
7cbfed20e9 refactoring, socket.io update
more refactoring, code standards, updated socket.io to 1.7.4, increment
release to 0.1.1
2017-06-03 16:50:45 -04:00
billchurch
cdd50f7b22 removed mixed operators from last commit 2017-05-27 18:22:28 -04:00
billchurch
4540cc6e0e updated documents, added validation to user input strings
term= query option to specify TERM environment variable for host, valid
strings are alpha-numeric with a hypen (validated). Otherwise the
default ssh.term variable from `config.json` will be used.
- validation for host (v4,v6,fqdn,hostname), port (integer 2-65535),
and header (sanatized) from URL input
2017-05-27 18:12:02 -04:00
billchurch
7b6d060bc3 minification and concatenation
minification and concatenation of javascript and css.
added new feature to specify minification in config.json (use minified)
updated readme and changelog
tasks in grunt to build minified and concatenated files
2017-05-27 13:29:26 -04:00
billchurch
2e912dd9cc refactoring
moved some events into socket/index.js to better organize code
created session.ssh property for application session variables
moved crypto algorithms to config.json and assigned to
..session.ssh.algorithms variable
2017-05-26 11:25:44 -04:00
billchurch
938e2fbfa4 cleanup 2017-05-21 10:57:07 -04:00
billchurch
41508276b6 additional debug log statements 2017-05-20 18:00:15 -04:00
billchurch
2c1c3ac911 error handling fixups
added some additional error handing functions and debugging points
- `DEBUG=ssh` will put the ssh2 module into debug mode
- `debug=WebSSH2` will output additional debug messages for functions
and events in the application (not including the ssh2 module debug)
- created socket/index.js to start the process of separating out app
functions, just holds error logging function at this point
- corrected some events on public/client.js so the primary error cause
is not overwritten
- ensure that ssh connection is terminated when websocked is
disconnected by the client
2017-05-20 17:26:18 -04:00
billchurch
c4a78fb1d7 delinting 2017-05-19 21:19:41 -04:00
billchurch
7f55613de8 Refactoring, Session maintenance
- start of some refactoring
- linking socket.io and express sessions
- cleaning up some potential error conditions

todo:
- re-work status updates on client side for unexpected websocket
disconnects while not overwriting ssh server errors un termination
2017-05-19 19:49:59 -04:00
billchurch
8838150c22 codelint and cross platform improvements 2017-05-08 12:07:47 -07:00
billchurch
aad3744552 codelint and cross platform improvements
Used [standard](https://github.com/feross/standard) to lint some of the
code.

Cross-platform directory handling (updated references to filesystem
paths to use path.join)
2017-05-08 12:03:18 -07:00
billchurch
6b05e5e34f minor formatting and name cleanup 2017-03-24 11:23:45 -04:00
billchurch
17233f11de fixed auto fit and column/row settings for SSH, added experimental client-side logging
line wrapping should work correctly now.
experimental client side logging.
2017-03-23 18:12:33 -04:00
billchurch
a9d7959228 moved terminal selection to config.json
Defaulting to xterm-color for better support across *nixs
2017-03-23 11:24:03 -04:00
billchurch
569a40bf1f Minor code formatting cleanup. 2017-03-23 09:37:35 -04:00
billchurch
70e36daa55 setting xterm-256color as default terminal
previously vt100 would be assumed, this caused some programs to not
properly receive mouse events or display full color.
2017-03-23 09:26:27 -04:00
Bill Church
72a767aa0a fixed misspelled config.ssh.port property
fixes #7
2017-02-14 13:45:58 -05:00
billchurch
9ebd56ddb9 fixed error message status overwriting
Fixed issue where error message would be overwritten in status bar as
websocket connection is closed. Added additional logging elements in
some events.
2017-02-10 10:56:11 -05:00
billchurch
e06d2570ae Fixes issue #4
Add a test for a blank (not null) username. Also added feature to
re-prompt for credentials if none are entered.
2017-02-10 08:23:06 -05:00
Bill Church
b86ae3e88d Fixed the banner newline/carriage return fix...
To not capture \r\n when looking for \r to fix formatting of banner messages.
2017-02-09 11:49:51 -05:00
billchurch
1725cdaa85 fixing banner formatting issues
when Unix hosts use lf vs cr/lf it doesn’t quite format right.
converting these to fix that. I’m not sure if this is something to be
solved in xterm.js, haven’t had time really review it.
2017-02-01 18:36:05 -05:00
billchurch
98c384e46c corrected some typos and issues 2017-02-01 16:55:34 -05:00
billchurch
20f67a71d4 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	index.js
2017-02-01 16:22:59 -05:00
billchurch
ca4e059c39 Changing over from term.js to xterm.js
Changing over from term.js to https://github.com/sourcelair/xterm.js
Added cookieParser for some additional to do some URI translation
2017-02-01 16:05:53 -05:00
Bill Church
c5af044bbe keyboard-interactive handling
Added keyboard-interactive handling (thanks @mikej81).

Also cleaned up some syntax, missing semicolons.
2016-07-28 07:48:39 -07:00
billchurch
e08878d81a cleanup
mistakenly left some test code.
2016-05-20 10:51:44 -04:00
billchurch
bc20a06497 Increment port feature
If the specified port is being used, added a feature that it would
increment the port by 1 and try again, logging the chosen port to the
console.

removed console.log of config
2016-05-20 10:50:46 -04:00
billchurch
9a9cf5cdc0 Initial config file
Moved configuration variables from index.js to config.json using
read-config.
2016-05-20 10:39:58 -04:00
billchurch
638fafb95d Initial Commit
Initial Commit
2016-05-18 11:34:49 -04:00