Commit Graph

  • 223b1fd909 Add new default when creating shell and another shortcut olegkap_cp 2011-05-10 15:11:25 +00:00
  • cbeebdff00 Fix SftpSession.Dispose method olegkap_cp 2011-05-10 14:27:08 +00:00
  • 53661ef847 Restore timeout for any operation that waits for server response olegkap_cp 2011-05-10 14:03:04 +00:00
  • 2348be8875 Additional fix to Shell stopping olegkap_cp 2011-05-09 17:26:12 +00:00
  • 20b164cf32 Throw an exception if authentication method is not supported by the server olegkap_cp 2011-05-09 15:27:43 +00:00
  • 10f2ff2624 Add PipeStream class to handle command output Improve Shell input and output streams olegkap_cp 2011-05-09 14:19:08 +00:00
  • 20fb009c84 Add Get function to get reference to SftpFile instnace that represents remote file or directory olegkap_cp 2011-05-05 18:26:29 +00:00
  • 99bddc38e7 Fix Shell from hung when Stop is called olegkap_cp 2011-05-05 15:18:28 +00:00
  • 30624c5366 Handle SSH_MSG_USERAUTH_BANNER prior establishing secure connection olegkap_cp 2011-05-05 15:08:35 +00:00
  • 3712b27080 Ensure that socket is disposed by only one thread. olegkap_cp 2011-04-20 14:23:35 +00:00
  • 382f9c8c26 Fix disposing of Socket object olegkap_cp 2011-04-19 19:16:28 +00:00
  • c2e8506808 Adding support for more cryptographic algortihms : blowfish-cbc, cast128-cbc, aes128-ctr, aes192-ctr, aes256-ctr Prepare classes for future implementation of other algorithms olegkap_cp 2011-04-14 16:33:48 +00:00
  • dc87042ff5 Fix shell byte output olegkap_cp 2011-03-24 18:23:28 +00:00
  • e5624cdc5d SshPassPhraseNullOrEmptyException and test added olegkap_cp 2011-03-08 15:15:24 +00:00
  • 635f23fb02 Add IDisposable interface to SftpCommand and dispose of all SftpCommand to prevent Memory leak olegkap_cp 2011-03-07 15:44:13 +00:00
  • ed28543ce9 Allow SSH_MSG_DISCONNECT and SSH_MSG_IGNORE messages during key exhange phase olegkap_cp 2011-02-22 15:20:03 +00:00
  • c2b45f0eca Perfomance improvments Remove GetSshString and GetBytes extenstion method Use byte[] vs IEnumerable<byte> Other minor changes to improve performance Fix SFTP synch issue Update some tests olegkap_cp 2011-01-31 21:25:14 +00:00
  • 12a323c093 Fix path resolution and implement it the way PUTTY does Fix Test_Sftp_Upload_Forbidden test Add Test_Sftp_Download_File_Not_Exists Test Add Test_Sftp_Change_Directory test olegkap_cp 2011-01-22 00:36:40 +00:00
  • c391b54b60 Close file handle when download is completed. olegkap_cp 2011-01-12 21:44:32 +00:00
  • ea575472a0 Fix reusing command object to execute different commands. Add Test_Execute_Command_Same_Object_Different_Commands test olegkap_cp 2011-01-10 18:19:30 +00:00
  • e488bc516e Add ErrorOccured to BaseClient to allow catching of exceptions that happened on the other thread Fix SymbolicLink method Minor changes olegkap_cp 2011-01-05 23:12:10 +00:00
  • 24b902f27b Update SftpFile with new properties and added functionality Fix directory navigation and full path name resolution olegkap_cp 2011-01-04 22:36:07 +00:00
  • a98604bce3 Fix more memory leak problem, now repeat execution of SshCommand doesnt cause memory leak over time; Other minor fixes. olegkap_cp 2011-01-03 19:41:07 +00:00
  • c4d21cf3fd Fix previose checking "Null reference exception" olegkap_cp 2011-01-02 06:39:36 +00:00
  • 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 olegkap_cp 2011-01-02 06:30:11 +00:00
  • 5c535899db Change sequence of sending NEW_KEYS message, some servers would hang during key negotiation stage olegkap_cp 2010-12-30 19:58:16 +00:00
  • a9c7addecd Reorganize SFTP functionality and add some methods to replicate sftp utility as close as possible Add SFTP Tests Other minor fixes olegkap_cp 2010-12-29 21:56:21 +00:00
  • 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 olegkap_cp 2010-12-28 21:08:28 +00:00
  • 54eb96d513 Checking documentation project file with previously unsaved data olegkap_cp 2010-12-28 17:58:09 +00:00
  • 231e4d1c34 Add SSH Forwarding into documentation olegkap_cp 2010-12-28 16:51:18 +00:00
  • c46b70f7f0 Add initial documention project files olegkap_cp 2010-12-28 16:20:22 +00:00
  • 9a75f08668 Add new CreateCommand method to create new command with specified encoding. olegkap_cp 2010-12-28 15:55:29 +00:00
  • a1b4d08009 Add Test_Execute_Infinite_Timeout test Refactor SSH Message type mapping (based on name instead of concreate type) Clean up some TODO items olegkap_cp 2010-12-28 03:46:45 +00:00
  • 8c8f4acc47 Fix Command infinite default timeout. olegkap_cp 2010-12-27 20:04:57 +00:00
  • 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 olegkap_cp 2010-12-27 02:10:31 +00:00
  • 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 olegkap_cp 2010-12-25 05:57:34 +00:00
  • 792fcbf70a Temporary remove documentation project while workin on it olegkap_cp 2010-12-24 21:07:02 +00:00
  • 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 olegkap_cp 2010-12-24 13:58:19 +00:00
  • ad100df7b8 Add KeyboardInteractiveConnectionInfo class for use with Keyboar interactive authentication method olegkap_cp 2010-12-24 04:20:33 +00:00
  • 8bd42a06f1 Add some documentation content file to start creation of CHM help file olegkap_cp 2010-12-23 21:06:07 +00:00
  • 2303affe79 Send SSH_MSG_IGNORE message when implementing keep alive instead of fake global request olegkap_cp 2010-12-22 22:37:32 +00:00
  • 1e539de36a Complete SSH_MSG_CHANNEL_REQUEST send message functions for different requests Refactor to have all messages to have private setters Some code cleanup olegkap_cp 2010-12-22 22:16:38 +00:00
  • 21794bf6d1 Add KeepAliveInterval to send keep alive message autmaticlly SendDisconnect messge when Session is being disposed olegkap_cp 2010-12-22 20:06:16 +00:00
  • 8aa21ae400 Add AuthenticationEventArgs inherited classes to suport different authentication scenarios where user input is needed or additional information is available olegkap_cp 2010-12-22 18:44:22 +00:00
  • f0422f9151 Minor internal changes to UserAuthentication inherited classes olegkap_cp 2010-12-22 05:03:58 +00:00
  • 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 olegkap_cp 2010-12-22 03:00:28 +00:00
  • 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 olegkap_cp 2010-12-21 21:13:25 +00:00
  • 883de1a4d1 Fix null username when KeyFile is used Reorganze and add more tests olegkap_cp 2010-12-21 14:32:04 +00:00
  • 5d3438aae5 Prevent start a new shell when its already started olegkap_cp 2010-12-20 19:31:45 +00:00
  • 04ec81d5d5 Populate and correct SFTP file attributes olegkap_cp 2010-12-20 19:29:19 +00:00
  • ce715f6d37 SshCommand re-execution cleanup olegkap_cp 2010-12-20 19:15:04 +00:00
  • 815e0572f7 Fix SFTP ListDirectoryCommand class to allow listing of big directory structure olegkap_cp 2010-12-20 18:21:53 +00:00
  • 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 olegkap_cp 2010-12-20 17:48:15 +00:00
  • dd0d8b7750 Add ability to provide multiple multiple key files for authentication olegkap_cp 2010-12-17 18:56:19 +00:00
  • e0fa741b3f Fix and add ssh-dss host key algorithm olegkap_cp 2010-12-17 14:44:12 +00:00
  • bf0998c8f6 Add "diffie-hellman-group14-sha1" implementation olegkap_cp 2010-12-17 13:34:00 +00:00
  • cfcb5dc7cd Fix compile error olegkap_cp 2010-12-17 00:27:44 +00:00
  • facb6db1f9 Implement passphrase feature to allow usage of encrypted key files olegkap_cp 2010-12-16 23:42:12 +00:00
  • 96656ec792 Minor changes to how PrivateKey file is parsed olegkap_cp 2010-12-16 18:17:05 +00:00
  • 04ec42133a Execute command callback on different thread Add ConnectingEventArgs to allow more control during connection stage olegkap_cp 2010-12-15 22:42:56 +00:00
  • ccda04e6f1 IDisposable interface refactoring Remove Settings class and specify suported algorithm per session to allow in future to modify supported algorithms per connection olegkap_cp 2010-12-15 21:40:23 +00:00
  • 4caee0d629 Make some classes public instead of internal Add SshBasClient class and make SshClient and SftpClient to inherit from it olegkap_cp 2010-12-15 14:11:35 +00:00
  • c9739ac679 Fix SFTP Multiple files upload/download issue olegkap_cp 2010-12-13 19:22:27 +00:00
  • 1ff83b9ac9 Fix SFTP issue with multiple SFTP messages can arrive in one SSH packet Fix HANDLE close event to notify about operation completion olegkap_cp 2010-12-10 21:34:33 +00:00
  • 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 olegkap_cp 2010-12-10 14:09:44 +00:00
  • d52655cc1e Apply some CA recommendations olegkap_cp 2010-12-09 04:35:54 +00:00
  • cf4a9c2e5f Complete SFTP implemention with async execution support without stress testing yet olegkap_cp 2010-12-09 04:05:29 +00:00
  • ec7b872c0c Remove special handling of version 1.99 as it was not needed olegkap_cp 2010-12-09 03:01:44 +00:00
  • 0b6997f969 Partially implemented SftpClient, still missing few public methods to finish implementation olegkap_cp 2010-12-07 05:12:58 +00:00
  • 935d7dd40d Refactor key excahnge mechanism; Minror channel changes olegkap_cp 2010-11-30 20:40:40 +00:00
  • b84ad09fd5 Temporary remove SFTP functionality while refactoring to allow asynch execution olegkap_cp 2010-11-29 18:29:27 +00:00
  • 4c871a0962 Fix reading Sftp Messages olegkap_cp 2010-11-23 20:19:18 +00:00
  • 5a8960f0d9 Fix and complete basic implementation of Shell class, allow open terminal sessions olegkap_cp 2010-11-23 04:39:26 +00:00
  • d8a123c9e6 Remove ChannelSessionExec functiolity into SshCommand class; Add new exception type; Improve error throwing and disconnection algorithm olegkap_cp 2010-11-22 14:19:44 +00:00
  • a6af208ae4 Add Connect*, Disconnect* and Errorccured events to Session olegkap_cp 2010-11-21 01:30:22 +00:00
  • 50f1a3e51e Refactor Channel messaging, include messages that curently not in use olegkap_cp 2010-11-19 16:26:35 +00:00
  • d97f30a745 Add Channel events to prepare for further refactoring olegkap_cp 2010-11-18 21:47:59 +00:00
  • a8adef465c Refactor and complete ChannelRequestMessage for different channel request; Add support for version 1.99; Add shell/terminal like capabilities; olegkap_cp 2010-11-17 18:29:39 +00:00
  • c5bd6c203e Start refactoring handling session messages into handling message events olegkap_cp 2010-11-15 18:59:37 +00:00
  • 2c435ec12c Fix remote port forwarding socket read functionality olegkap_cp 2010-11-11 19:36:00 +00:00
  • 6cd224a0e4 Fix max open channels for session type channel Fix some CA warnings olegkap_cp 2010-11-11 18:31:26 +00:00
  • 27d87e3b69 Refactor command execution and provide more information when command execute Add SshCommand class wchich replaces functionality of Shell class Allow to return ExitStatus and Error message seperatly or both olegkap_cp 2010-11-10 16:20:31 +00:00
  • b52f88e6c8 Temporary changes to restrict number of Session Channels (not yet completed) olegkap_cp 2010-11-09 15:34:10 +00:00
  • f9d6c34b59 Remove initilize method and make sure there is always one session per connection when connected to the server Correct fail command re-execution test olegkap_cp 2010-11-08 16:01:54 +00:00
  • ba8f01a661 Fix SFTP Write method olegkap_cp 2010-11-08 13:54:59 +00:00
  • 66cc98d2e0 Reduce Session visibility to inherited Channel classes olegkap_cp 2010-11-08 13:54:37 +00:00
  • a322c96a1c Refactor channel message handling by converting into events olegkap_cp 2010-11-05 20:42:49 +00:00
  • ba9208e33e Update TestRemotePortForwarding test olegkap_cp 2010-11-04 21:33:15 +00:00
  • 917508119d Fix problem with invalid URL olegkap_cp 2010-11-04 21:08:50 +00:00
  • 500fc57184 Refactor Channel structure and management Add PortForwarding funcionality Create SshClient which will be one enty point for all Ssh functionality olegkap_cp 2010-11-04 20:44:17 +00:00
  • e33b67e2ff Add more information to SshException when command execuetd with error. Pass the error description to the exception. olegkap_cp 2010-10-20 14:03:58 +00:00
  • 7062a7edf1 Remove shell folder olegkap_cp 2010-10-13 17:37:59 +00:00
  • a9d4fb5fc4 Project renaming and reorg olegkap_cp 2010-10-13 17:17:53 +00:00
  • e3d570ea62 olegkap_cp 2010-10-13 17:09:22 +00:00
  • 69e6694506 Addint test project to solution with some test cases olegkap_cp 2010-10-13 17:06:34 +00:00
  • 0c885f5704 Minor refactoring to resolve minor issues and CA complaints olegkap_cp 2010-10-08 14:42:06 +00:00
  • 420b715b6e Change default timeout to 30 seconds olegkap_cp 2010-10-05 18:29:55 +00:00
  • d186722e8e Change Timeout data type to TimeSpan olegkap_cp 2010-10-05 18:28:33 +00:00
  • 9860895245 Add thread safty to Disconnect method olegkap_cp 2010-10-05 18:26:50 +00:00
  • f2bd74c91e Fix GetIntegerSize method which used when Private key file is used olegkap_cp 2010-10-04 19:50:13 +00:00