1714 Commits

Author SHA1 Message Date
olegkap_cp a98604bce3 Fix more memory leak problem, now repeat execution of SshCommand doesnt cause memory leak over time;
Other minor fixes.
2011-01-03 19:41:07 +00:00
olegkap_cp c4d21cf3fd Fix previose checking "Null reference exception" 2011-01-02 06:39:36 +00:00
olegkap_cp c5806a42b0 Internal KeyExchange refactoring to improve precious fix
Rework channel closing logic to work more like putty does so it could be supported by more servers
Handle SSH_FXP_EXTENDED message
Temporary remove ChangePermissions, ChangeGroup and ChangeOwner methods as they not tested yet and not working
Add more attributes to the SftpFile to indicate diffrent information stored in permission filed.
Fix memory leak problem
2011-01-02 06:30:11 +00:00
olegkap_cp 5c535899db Change sequence of sending NEW_KEYS message, some servers would hang during key negotiation stage 2010-12-30 19:58:16 +00:00
olegkap_cp a9c7addecd Reorganize SFTP functionality and add some methods to replicate sftp utility as close as possible
Add SFTP Tests
Other minor fixes
2010-12-29 21:56:21 +00:00
olegkap_cp 9f7a13a24f Fixes and improvments to Port Forwarding feature
Add BoundHost property to allow to specify which IP to bind to when multiple IP addresses available instead of only localhost
     Fix originator address and port to be send correctly instead of 0.0.0.0
     Add RequestReceived event which raised when request is received on forwaded port.
     Fixing misc errors
2010-12-28 21:08:28 +00:00
olegkap_cp 54eb96d513 Checking documentation project file with previously unsaved data 2010-12-28 17:58:09 +00:00
olegkap_cp 231e4d1c34 Add SSH Forwarding into documentation 2010-12-28 16:51:18 +00:00
olegkap_cp c46b70f7f0 Add initial documention project files 2010-12-28 16:20:22 +00:00
olegkap_cp 9a75f08668 Add new CreateCommand method to create new command with specified encoding. 2010-12-28 15:55:29 +00:00
olegkap_cp a1b4d08009 Add Test_Execute_Infinite_Timeout test
Refactor SSH Message type mapping (based on name instead of concreate type)
Clean up some TODO items
2010-12-28 03:46:45 +00:00
olegkap_cp 8c8f4acc47 Fix Command infinite default timeout. 2010-12-27 20:04:57 +00:00
olegkap_cp 51b84079e2 Delete Messagees\Sftp and \Documentation folders
Change CommandTimeout property type to TimeSpan
Add Test_Execute_Timeout test
Add XML comments to public and protected methods and classes
2010-12-27 02:10:31 +00:00
olegkap_cp 7297259e21 Remove MessageTypes enum and reorganize message to use class attributes to allow handling of messages with the same code number and more easliy to intorduce new messages in the future 2010-12-25 05:57:34 +00:00
olegkap_cp 792fcbf70a Temporary remove documentation project while workin on it 2010-12-24 21:07:02 +00:00
olegkap_cp 3056ee70c4 Merge UserAuthentication*** functionality into ***ConnectionInfo classes to avoid dublication to prepare for easir authentication method extnetions
Move Authentication related events into ConnectionInfo class
Remove Authentication method from the client
Minor code changes to fix some CA warnings
2010-12-24 13:58:19 +00:00
olegkap_cp ad100df7b8 Add KeyboardInteractiveConnectionInfo class for use with Keyboar interactive authentication method 2010-12-24 04:20:33 +00:00
olegkap_cp 8bd42a06f1 Add some documentation content file to start creation of CHM help file 2010-12-23 21:06:07 +00:00
olegkap_cp 2303affe79 Send SSH_MSG_IGNORE message when implementing keep alive instead of fake global request 2010-12-22 22:37:32 +00:00
olegkap_cp 1e539de36a Complete SSH_MSG_CHANNEL_REQUEST send message functions for different requests
Refactor to have all messages to have private setters
Some code cleanup
2010-12-22 22:16:38 +00:00
olegkap_cp 21794bf6d1 Add KeepAliveInterval to send keep alive message autmaticlly
SendDisconnect messge when Session is being disposed
2010-12-22 20:06:16 +00:00
olegkap_cp 8aa21ae400 Add AuthenticationEventArgs inherited classes to suport different authentication scenarios where user input is needed or additional information is available 2010-12-22 18:44:22 +00:00
olegkap_cp f0422f9151 Minor internal changes to UserAuthentication inherited classes 2010-12-22 05:03:58 +00:00
olegkap_cp cdf4e52365 Remove Connecting and Connected events as they are useless
Move algorithms definition into ConnectionInfo class
Add PasswordConnectionInfo and PrivateKeyConnectionInfo classed and inherit from ConnectionInfo to allow future addition of different authentication methods
2010-12-22 03:00:28 +00:00
olegkap_cp feafa2ef38 Add Authenticating event to allow capture of any banner text if exists that need to be presented to the user and to provide other authentication related information
Refactor userauthentication proccess and add support for "keyboard-interactive" authentication method
2010-12-21 21:13:25 +00:00
olegkap_cp 883de1a4d1 Fix null username when KeyFile is used
Reorganze and add more tests
2010-12-21 14:32:04 +00:00
olegkap_cp 5d3438aae5 Prevent start a new shell when its already started 2010-12-20 19:31:45 +00:00
olegkap_cp 04ec81d5d5 Populate and correct SFTP file attributes 2010-12-20 19:29:19 +00:00
olegkap_cp ce715f6d37 SshCommand re-execution cleanup 2010-12-20 19:15:04 +00:00
olegkap_cp 815e0572f7 Fix SFTP ListDirectoryCommand class to allow listing of big directory structure 2010-12-20 18:21:53 +00:00
olegkap_cp 4860a42a2a Add diffie-hellman-group-exchange-sha256 and diffie-hellman-group-exchange-sha1 key exchange methods
Refactor key exchange mechanism
Fix public key authentication method when key is not provided
2010-12-20 17:48:15 +00:00
olegkap_cp dd0d8b7750 Add ability to provide multiple multiple key files for authentication 2010-12-17 18:56:19 +00:00
olegkap_cp e0fa741b3f Fix and add ssh-dss host key algorithm 2010-12-17 14:44:12 +00:00
olegkap_cp bf0998c8f6 Add "diffie-hellman-group14-sha1" implementation 2010-12-17 13:34:00 +00:00
olegkap_cp cfcb5dc7cd Fix compile error 2010-12-17 00:27:44 +00:00
olegkap_cp facb6db1f9 Implement passphrase feature to allow usage of encrypted key files 2010-12-16 23:42:12 +00:00
olegkap_cp 96656ec792 Minor changes to how PrivateKey file is parsed 2010-12-16 18:17:05 +00:00
olegkap_cp 04ec42133a Execute command callback on different thread
Add ConnectingEventArgs to allow more control during connection stage
2010-12-15 22:42:56 +00:00
olegkap_cp ccda04e6f1 IDisposable interface refactoring
Remove Settings class and specify suported algorithm per session to allow in future to modify supported algorithms per connection
2010-12-15 21:40:23 +00:00
olegkap_cp 4caee0d629 Make some classes public instead of internal
Add SshBasClient class and make SshClient and SftpClient to inherit from it
2010-12-15 14:11:35 +00:00
olegkap_cp c9739ac679 Fix SFTP Multiple files upload/download issue 2010-12-13 19:22:27 +00:00
olegkap_cp 1ff83b9ac9 Fix SFTP issue with multiple SFTP messages can arrive in one SSH packet
Fix HANDLE close event to notify about operation completion
2010-12-10 21:34:33 +00:00
olegkap_cp 2bbb42508b Add method KeepAlive to SshClient to allow to send dummy KeepAlive requests
Dont allow por forwarding to start or stop if its already started or stopped
2010-12-10 14:09:44 +00:00
olegkap_cp d52655cc1e Apply some CA recommendations 2010-12-09 04:35:54 +00:00
olegkap_cp cf4a9c2e5f Complete SFTP implemention with async execution support without stress testing yet 2010-12-09 04:05:29 +00:00
olegkap_cp ec7b872c0c Remove special handling of version 1.99 as it was not needed 2010-12-09 03:01:44 +00:00
olegkap_cp 0b6997f969 Partially implemented SftpClient, still missing few public methods to finish implementation 2010-12-07 05:12:58 +00:00
olegkap_cp 935d7dd40d Refactor key excahnge mechanism;
Minror channel changes
2010-11-30 20:40:40 +00:00
olegkap_cp b84ad09fd5 Temporary remove SFTP functionality while refactoring to allow asynch execution 2010-11-29 18:29:27 +00:00
olegkap_cp 4c871a0962 Fix reading Sftp Messages 2010-11-23 20:19:18 +00:00