Commit Graph

  • 81b9e21b8f Remove quotes when using SCP to download or upload olegkap_cp 2012-01-04 18:14:40 +00:00
  • e435bd2300 Add SOCKS4 & SOCKS5 Proxy support when connecting to remote server. For silverlight only IP address can be used for server address when using proxy. Usage example: var connectionInfo = new PasswordConnectionInfo("1.2.3.4", "username", "password", ProxyTypes.Socks4, "127.0.0.1", 8088); using (var ssh = new SshClient(connectionInfo)) { ssh.Connect(); var rrr = ssh.RunCommand("ls -l"); } olegkap_cp 2012-01-04 14:56:58 +00:00
  • 746b4796fa Replace some documention source file (not finished yet) olegkap_cp 2011-12-27 16:16:49 +00:00
  • 50c8b3c6f2 Refactor SftpMessage to work with WindowsPhone correctly Clean up unused code olegkap_cp 2011-12-09 17:54:03 +00:00
  • efa9d91f19 Add PipeStreamTest Add SuppressMessage to some methods Fix broken Test_Connect_Then_Reconnect test olegkap_cp 2011-12-08 20:10:03 +00:00
  • 6c4eda935f Restore logging for Sessions olegkap_cp 2011-12-07 20:20:20 +00:00
  • f5b84e974c Replace reflection operation with static message metadata to work with WindowsPhone. olegkap_cp 2011-12-07 20:17:23 +00:00
  • d96c93abb2 Minor fix to ASCIIEncoding Add ScpClient to support SCP feature with limited featres supported in silverlight and WindowsPhone environment Add ScpClient test olegkap_cp 2011-12-07 19:12:29 +00:00
  • 96c512fddb Add ability to examen server public key/fingerprint olegkap_cp 2011-11-29 14:32:17 +00:00
  • c301c940ce Create Random function for BigInteger Clean up minor TODO items olegkap_cp 2011-11-28 14:18:12 +00:00
  • d1dee73f0e Fix SocketReadLine for Silverlight and WindowsPhone version olegkap_cp 2011-11-23 19:29:40 +00:00
  • 751d0fecd4 Clean up logging and make silverlight and WindowsPhone projects compilable again olegkap_cp 2011-11-23 18:31:07 +00:00
  • 148be6f50e Allow cancel long running async executed commands Add BreakRequestInfo for possible future support olegkap_cp 2011-11-22 20:09:42 +00:00
  • a0c40a5842 Add LastAccessTimeUtc and LastWriteTimeUtc properties to SftpFile olegkap_cp 2011-11-22 02:59:39 +00:00
  • ef33d78e89 Fix international support, now all differnt character sets should work, depends on windows default selection Add international support test case Add XML documention to some members of SubsystemSession class olegkap_cp 2011-11-21 20:32:39 +00:00
  • 428b026c48 Refactor Dispose to avoid calling any socket related commands from it olegkap_cp 2011-11-18 15:49:49 +00:00
  • dc2d8ec142 Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5 olegkap_cp 2011-11-16 04:42:11 +00:00
  • 23d3eb8ae7 Add NetConf support, apply patch 10722 olegkap_cp 2011-11-16 03:46:00 +00:00
  • aa10395ebc Changed the tests for Permission Denied to use /root, otherwise it caused Not Found. Kenneth_aa_cp 2011-11-04 18:01:58 +00:00
  • 9f22922cd9 Added basic low-level message logging, for those who has problems this might help interpret what happens. Kenneth_aa_cp 2011-11-04 17:57:35 +00:00
  • a39dcbf3ae Added some more documentation for methods in SshClient class. Kenneth_aa_cp 2011-11-04 14:00:05 +00:00
  • 4ea8d5c241 Fixed Download_Forbidden test to actually download and not upload. Kenneth_aa_cp 2011-11-04 12:58:54 +00:00
  • 231081729f Fixed a bug that was left after reworking compression. Caused Remote host closed the connection. Kenneth_aa_cp 2011-11-04 08:37:10 +00:00
  • 8680a84416 Add ZlibStream and refactor compression related code for fufutre zlib support. olegkap_cp 2011-09-28 20:29:49 +00:00
  • 99adc4de8b Make LastWriteTime and LastAccessTime properties updatable olegkap_cp 2011-09-28 14:16:31 +00:00
  • 44ace626b3 Fix regex to allow host to start with number olegkap_cp 2011-09-19 12:51:58 +00:00
  • 799e6d54b9 Internal changes, replace Dictionary<string,SftpFileAttributes> with KeyValuePair<string,SftpFileAttributes>[]. olegkap_cp 2011-09-16 16:50:00 +00:00
  • 91245999d9 Add additional BeginUploadFile method olegkap_cp 2011-09-15 13:33:36 +00:00
  • 1c8a03abb1 Fix encoding support and send command always encoded as UTF-8 olegkap_cp 2011-09-15 13:21:19 +00:00
  • 234cd1e024 Update Silverlight and WindowPhone projects and make it compilable. Apply new file naming convention for silverlight and windows phone project files olegkap_cp 2011-09-15 12:52:35 +00:00
  • b52679c0ef Minor code performance improvment, replace Array.Copy with Buffer.BlockCopy olegkap_cp 2011-09-14 13:37:38 +00:00
  • 2fc80afd6b Add file overwrite option to UploadFile method olegkap_cp 2011-09-12 19:26:10 +00:00
  • 2760c05e21 Implement write pipelining Other minor peromnace improvments olegkap_cp 2011-09-12 18:53:24 +00:00
  • b0458769df Fix random bytes arrays generation size olegkap_cp 2011-08-31 00:59:18 +00:00
  • 83884c34aa Refactor and remove usage of Network stream to make it compartible with Silverlight Make silverlight project compilable (still cannot connect, signature fails) olegkap_cp 2011-08-30 03:01:46 +00:00
  • 4c1b9660f1 Add missing Resources file from the test project olegkap_cp 2011-08-29 13:47:41 +00:00
  • 213ac99613 Fix RsaCipher block type condition olegkap_cp 2011-08-29 00:29:04 +00:00
  • 98033220e8 Rename Size int Length to look more like FileInfo olegkap_cp 2011-08-28 15:41:31 +00:00
  • ba3efa90f7 Fix RSA cipher and add support for different key sizes. olegkap_cp 2011-08-28 14:12:07 +00:00
  • 7f0c5d2399 Make NextRequestId property thread safe. olegkap_cp 2011-08-27 12:12:49 +00:00
  • 4b1f991c9e Remove ASCIIEncoding class and replace ASCII to UTF-8 Refresh Silverlight and WindowsPhone projects olegkap_cp 2011-08-27 03:42:50 +00:00
  • da854b711a Apply 10278 patch and make some minor corrections Fix Renci.SshNet.NET35 project and make it compilable Add Tests for .NET 3.5 olegkap_cp 2011-08-26 12:52:20 +00:00
  • 5aa082d32d Add BigInteger.BitLength property Use BitLength property to calculate random value olegkap_cp 2011-08-25 18:00:32 +00:00
  • 70105742d3 Add project for future .NET 3.5 support olegkap_cp 2011-08-25 14:00:39 +00:00
  • 5cfea7f750 Remove deleted files from the source Fix SftpFile.MoveTo method to rename file Correct SshData class ReadString and ReadBinaryString methods Add SftpFile.MoveTo test olegkap_cp 2011-08-24 13:32:28 +00:00
  • 20a22115f2 SshData.cs - Added 2 parameter checks. SshClient.cs - Added 1 parameter check. Kenneth_aa_cp 2011-08-24 05:04:45 +00:00
  • d8ee7d17d2 SshData.cs - Added 4 exception documentation, added 3 parameter checks, fixed typo in exception message for ReadString/ReadBinaryString. Also note that any call to SshData.Write(IEnumerable<byte>) will throw if passed null, List<byte>.AddRange does that for us. SubsystemSession.cs - Added 1 exception documentation and parameter check on Constructor(Session,string,TimeSpan). SftpClient.cs - Added more exception documentation than I care to count. PipeStream.cs - Fixed mismatch between documentation and the actual exception in Write(byte[], int, int). Also in property Position, throwing NotImplemented but documented NotSupported. Also happens elsewhere o.O - I'm not touching this code anymore, see Workitem 819. SemaphoreLight.cs - Added 1 exception documentation. Kenneth_aa_cp 2011-08-24 03:00:58 +00:00
  • 097246c153 Split SftpSession class into 2 to allow future extensability of other sub systems olegkap_cp 2011-08-22 13:51:15 +00:00
  • ae45316542 Add few cipher and private key tests olegkap_cp 2011-08-22 02:03:00 +00:00
  • dbd5f07d20 Fix CA2214 and some other CA complaints Fix some comments Fix DownloadFile hang error introduced in previouse check in olegkap_cp 2011-08-20 23:39:40 +00:00
  • 34a5cba265 Code Cleanup Some TODO items Replace IEnumerable<byte> with byte[] to reduce calling .ToArray() function Fix ListDirectory ( close open directory handle) olegkap_cp 2011-08-18 19:24:00 +00:00
  • 6f20f21d11 Improve DER object serialization and add ObjectIdentifier class to identify algorithm being used during DER serialziation olegkap_cp 2011-08-18 13:09:20 +00:00
  • 67538291a5 Fix RequestRead operation olegkap_cp 2011-08-17 15:14:37 +00:00
  • 745bc9e2bc Add RsaKey and DsaKey classes Add HostAlgorithm class for host key authentication and possible for certificate authentication in the future Refactor public/private key logic olegkap_cp 2011-08-16 18:48:16 +00:00
  • eb8a5086ad ConnectionInfo.cs - Added 1 exception documentation. PrivateKeyFile.cs - Added 4 exception documentation, and added parameter checks for null to DecryptKey. SftpFile.cs - Added 1 exception documentation. SftpFileStream.cs - Added 3 exception documentation. SftpClient.cs - Added 8 exception documentation, and added a an attribute to SetLastAccessTime, SetLastAccessTimeUtc, SetLastWriteTime, SetLastWriteTimeUtc to give warning about not being implemented. Shell.cs - Added 2 exception documentation. SshCommand.cs - Added 3 exception documentation, and added 2 notes in BeginExecute as to how to better explain the exception, and question what happens if callback is null. Kenneth_aa_cp 2011-08-16 06:26:02 +00:00
  • b20150456e Refactor and reorganize cipher encryption (more need to be done) Add padding for private key DES-EDE3-CBC, DES-EDE3-CFB and others encryption/decryption Add internally implemented DSA digital signature Change encruption and hash algorithm definition in ConnectionInfo from Type to Lambda expression olegkap_cp 2011-08-11 02:01:18 +00:00
  • 033218647f Add KeepAliveRequestInfo class Add EndOfWriteRequestInfo class Refactor channel request messages to allow custom channel reuqest support olegkap_cp 2011-08-03 18:53:45 +00:00
  • e369b0f53e Add and fix comments olegkap_cp 2011-07-29 19:13:44 +00:00
  • 5e2112e62b Add SHA256Hash algorithm Exclude RSA Private Key from Silverlight version Minor silverlight related fixes olegkap_cp 2011-07-28 20:44:10 +00:00
  • 40b36edaf1 Add SHA1 algorithm Add RSA Private key algorithm Adding some Silverlight specific #if...#endif olegkap_cp 2011-07-28 20:09:41 +00:00
  • e3d3796d33 Fix Aes -ctr algorithms Move hmac-md5 hashing algorithm into library olegkap_cp 2011-07-13 14:41:13 +00:00
  • 7d8c9cf61e Refactor and reorganize cipher code Fix TripleDES cipher Fix and add missing comments Mark assembly as not CLR olegkap_cp 2011-07-06 20:19:29 +00:00
  • 445d995f44 Add ASCIIEncoding to be used internally and also by Silverlight implementations Misc logic sepeartion to prepare for Silverlight olegkap_cp 2011-07-05 20:03:02 +00:00
  • 1217c5505e Minor changes for future silverlight support olegkap_cp 2011-07-05 16:00:43 +00:00
  • a5c68f73c5 Fix some issues raised in #752 Issue olegkap_cp 2011-07-05 15:24:50 +00:00
  • 3d0738c8c8 Undo panic. Kenneth_aa_cp 2011-07-04 11:13:22 +00:00
  • 0a1aa984ec Firealarm Kenneth_aa_cp 2011-07-04 10:58:55 +00:00
  • 18b6eafaaa Extract thread related operation to NET40 partial classes Replace SemaphoreSlim with custom SemaphoreLight class olegkap_cp 2011-06-30 20:49:00 +00:00
  • 972b1eae21 Split exception file into two partial files so it could be reused by other implementations olegkap_cp 2011-06-30 15:21:50 +00:00
  • 6411407558 Replace System.Numerics.BigInteger type with internally implemented Renci.SshNet.Common.BigInteger olegkap_cp 2011-06-30 14:51:17 +00:00
  • 2d988eff58 Adding and linking project for Silverlight and WindowsPhone development olegkap_cp 2011-06-29 17:36:40 +00:00
  • fd22cf21a2 Replace ErrorEventArgs with ExceptionEventArgs olegkap_cp 2011-06-29 14:59:15 +00:00
  • db11576c82 Remove Messages folder from previouse check-in olegkap_cp 2011-06-27 17:58:55 +00:00
  • e67cc54cd2 Refactor SFTP messages to request/response Add new Exists method to verify if file of directory exists Change Get method to throw an exception if file or directory do not exists Replace SftpAsyncResult with SftpDownloadAsyncResult, SftpUploadAsyncResult and SftpListDirectoryAsyncResult olegkap_cp 2011-06-27 17:57:51 +00:00
  • be896dc88a Fix Buffer.BlockCopy error in SftpFileStream.Write method olegkap_cp 2011-06-21 20:14:54 +00:00
  • ef83707843 Fix FileMode.Create behaviour for SftpFileStream class olegkap_cp 2011-06-21 20:00:22 +00:00
  • b248dcc75f Rename SshFileNotFoundException to SftpPathNotFoundException to include file and direcotry errors and to be more SFTP specific. Rename SshPermissionDeniedException to SftpPermissionDeniedException to specify SFTP specific exception. olegkap_cp 2011-06-21 19:18:50 +00:00
  • 3e770696ae Fix ChangeDirectory method Fix GetCanonicalPath method Add tests for ChangeDirectory olegkap_cp 2011-06-21 19:13:34 +00:00
  • 6411f723ca Remove call to Stop method to prevent dead lock in local port forwarding olegkap_cp 2011-06-21 16:56:03 +00:00
  • be0dbf600e Add support for validation of IPv6 addresses olegkap_cp 2011-06-13 13:46:09 +00:00
  • 2bea9352eb Refactor SftpFileAttributes class to be public Add SetAttributes and GetAttributes methods olegkap_cp 2011-06-07 20:25:12 +00:00
  • 4d79078a70 Add SftpFileStream class Add Sftp file methods to SftpClient class, similar to File class methods olegkap_cp 2011-06-07 18:50:08 +00:00
  • 3156167c0d Added test for #713. Added test Test_PortForwarding_Local_Stop_Hangs_On_Wait. Kenneth_aa_cp 2011-05-19 09:01:21 +00:00
  • a1b3ce729b Fix async SFTP operations and ensure that only valid asyncResult objct can be used with End* operation olegkap_cp 2011-05-18 15:24:03 +00:00
  • e9167373f7 Add new method to Extensions class for test purposes Add argument checking based on test Correct some tests and add few more olegkap_cp 2011-05-16 14:06:13 +00:00
  • 8e7e93fc7e Fixed some tests to prevent certain tests to be run as root, for idiot-proofing and to prevent a test to succeed where it should fail. Kenneth_aa_cp 2011-05-15 18:25:24 +00:00
  • 27a87a8c29 Added tests for PortForwardEventArgs. Added Test_PortForwardEventArgs_Host_Null Added Test_PortForwardEventArgs_Host_Empty Added Test_PortForwardEventArgs_Port_Invalid Kenneth_aa_cp 2011-05-15 17:25:55 +00:00
  • b44c1679fc Added tests related to port forwarding, local and remote for null/string.Empty and invalid port numbers. Added Test_AddForwardedPort_Local_Hosts_Are_Null. Added Test_AddForwardedPort_Local_Hosts_Are_Empty. Added Test_AddForwardedPort_Remote_Hosts_Are_Null. Added Test_AddForwardedPort_Remote_Hosts_Are_Empty. Added Test_AddForwardedPort_Local_Hosts_Are_Empty. Added Test_AddForwardedPort_Invalid_PortNumber. Kenneth_aa_cp 2011-05-15 17:13:47 +00:00
  • 33eb7c557e Added test Test_Get_File_Null - passing null to Get. Kenneth_aa_cp 2011-05-15 10:50:51 +00:00
  • 07f033a647 Updated vsmdi file, forgot to include in previous commit. Kenneth_aa_cp 2011-05-15 10:40:17 +00:00
  • 406da97441 Added SftpClient tests: ListDirectory with null, CreateDirectory with null, ChangeDirectory with null, DeleteDirectory with null, DeleteFile with null, RenameFile with null, BeginUploadFile with null, BeginDownloadFile with null. Methods: Added Test_Sftp_ListDirectory_Null Added Test_Sftp_CreateDirectory_Null Added Test_Sftp_ChangeDirectory_Null Added Test_Sftp_DeleteDirectory_Null Added Test_Sftp_DeleteFile_Null Added Test_Sftp_RenameFile_Null Added Test_Sftp_BeginUploadFile_Null Added Test_Sftp_BeginDownloadFile_Null Kenneth_aa_cp 2011-05-15 10:34:52 +00:00
  • 936c296b82 Added tests for ConnectionInfo, passing whitespace (space) as argument for the constructor on host, username and password. Updated WorkItem attribute on test Test_Execute_Command_Same_Object_Different_Commands. Kenneth_aa_cp 2011-05-15 10:04:06 +00:00
  • a9d1ba340c Added WorkItem property on some test relating to Issue #703 Added Visual Studio Test Meta Data File, to organize tests abit. (Not completed) Kenneth_aa_cp 2011-05-14 16:00:58 +00:00
  • 9e54548963 Added test that delegates passed to BeginUploadFile, BeginDownloadFile and BeginListDirectory are actually called. Kenneth_aa_cp 2011-05-14 15:29:43 +00:00
  • 79095fa477 Ensure that command EndExecute called only once Call callback before End* command for SFTP operations olegkap_cp 2011-05-14 04:08:40 +00:00
  • 699163773b Flush StreamWriter for Shell shortcut operation olegkap_cp 2011-05-12 13:08:47 +00:00
  • da67b51a48 Fix shell stream output. Fix NullRefernce exception when shell finishes olegkap_cp 2011-05-11 22:58:51 +00:00
  • 61a8edead9 Fix possible nullable path (breaking change from previouse checking) Fix disconnect logic to avoid ObjectDisposed exception olegkap_cp 2011-05-11 21:40:51 +00:00
  • 2f42d5a31e Complete previouse renaming checking Minor fixes that was recenty broken earlier Apply some FxCop recomendation olegkap_cp 2011-05-11 19:49:06 +00:00
  • 5ede55515a Project reorganization and renaming to Renci.SshNet olegkap_cp 2011-05-11 19:48:16 +00:00