Commit Graph

252 Commits

Author SHA1 Message Date
olegkap_cp 8d3ae9cede Fix paddedBlock calculation 2012-02-24 19:12:38 +00:00
olegkap_cp d2eeca4d6d Fix Regex for private keys to accept keys with longer lines (for example Amazon services) 2012-02-24 18:37:43 +00:00
olegkap_cp 9ea9564e4b Improve ShellStream to behave like a regular Stream 2012-02-24 18:26:56 +00:00
olegkap_cp 98c64c4d9a Fix SocketReadLine to read only required information 2012-02-24 14:00:18 +00:00
olegkap_cp 08bf294958 Refactor ShellStream
Add Expect functionality
For usage examples see: http://sshnet.codeplex.com/discussions/301739
2012-02-21 04:26:55 +00:00
GiantJunkBox_cp 6b3e11b24b Changed a bunch of things around, seems to function as intended.
Need to (re)add support for enforcing a buffer limit and perahps a line timeout.
2012-02-19 00:20:32 +00:00
olegkap_cp 9030a146a3 Fews other Dispose to Clear changes for Mono support 2012-02-13 14:31:49 +00:00
olegkap_cp 3731cb3445 Intoroduce TerminalModes enum and ability to provide it when creating shell
Replace Dispose call with Clear to make it compilabel under mono
Add Expect function to ShellStream (partially working not completly tested)
2012-02-13 14:26:57 +00:00
olegkap_cp f27e8e19c7 Ensure random number generation doesnt go into infinite loop 2012-02-10 18:54:26 +00:00
olegkap_cp 9f82f4bb4d Replace Dispose with Clear to make it compilable in Mono
Fix posible memory leak in HMac
2012-02-10 18:41:39 +00:00
olegkap_cp 0203a453b0 Switch to Subversion 2012-02-10 18:16:29 +00:00
olegkap_cp 4cce9425cb Add CreateShellStream method and ShellStream class to work with shells
Make aes256-ctr encryption to be default one
2012-02-10 17:26:34 +00:00
olegkap_cp f8faabddda Fix WindowAdjusment for SCP and SFTP
Fix Key regeneration 
Minor comments and other fixes
Add Current* properties to ConnectionInfo object to specify parameters that currently by the connection
2012-01-24 14:48:04 +00:00
olegkap_cp 307491da2d Fix null buffers when using proxy to connect 2012-01-20 14:36:53 +00:00
olegkap_cp cfa1a7028b Refactor PortForwarding
Fix ChannelDirectTcpip clean up after socket is close by remote host
Add ForwardedPortDynamic to support dynamic forwarding, SOCKS4 and SOCKS5 are supported.
2012-01-06 18:57:48 +00:00
olegkap_cp 81b9e21b8f Remove quotes when using SCP to download or upload 2012-01-04 18:14:40 +00:00
olegkap_cp 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");
            }
2012-01-04 14:56:58 +00:00
olegkap_cp 746b4796fa Replace some documention source file (not finished yet) 2011-12-27 16:16:49 +00:00
olegkap_cp 50c8b3c6f2 Refactor SftpMessage to work with WindowsPhone correctly
Clean up unused code
2011-12-09 17:54:03 +00:00
olegkap_cp efa9d91f19 Add PipeStreamTest
Add SuppressMessage to some methods
Fix broken Test_Connect_Then_Reconnect test
2011-12-08 20:10:03 +00:00
olegkap_cp 6c4eda935f Restore logging for Sessions 2011-12-07 20:20:20 +00:00
olegkap_cp f5b84e974c Replace reflection operation with static message metadata to work with WindowsPhone. 2011-12-07 20:17:23 +00:00
olegkap_cp d96c93abb2 Minor fix to ASCIIEncoding
Add ScpClient to support SCP feature with limited featres supported in silverlight and WindowsPhone environment
Add ScpClient test
2011-12-07 19:12:29 +00:00
olegkap_cp 96c512fddb Add ability to examen server public key/fingerprint 2011-11-29 14:32:17 +00:00
olegkap_cp c301c940ce Create Random function for BigInteger
Clean up minor TODO items
2011-11-28 14:18:12 +00:00
olegkap_cp d1dee73f0e Fix SocketReadLine for Silverlight and WindowsPhone version 2011-11-23 19:29:40 +00:00
olegkap_cp 751d0fecd4 Clean up logging and make silverlight and WindowsPhone projects compilable again 2011-11-23 18:31:07 +00:00
olegkap_cp 148be6f50e Allow cancel long running async executed commands
Add BreakRequestInfo for possible future support
2011-11-22 20:09:42 +00:00
olegkap_cp a0c40a5842 Add LastAccessTimeUtc and LastWriteTimeUtc properties to SftpFile 2011-11-22 02:59:39 +00:00
olegkap_cp 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
2011-11-21 20:32:39 +00:00
olegkap_cp 428b026c48 Refactor Dispose to avoid calling any socket related commands from it 2011-11-18 15:49:49 +00:00
olegkap_cp dc2d8ec142 Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5 2011-11-16 04:42:11 +00:00
olegkap_cp 23d3eb8ae7 Add NetConf support, apply patch 10722 2011-11-16 03:46:00 +00:00
Kenneth_aa_cp aa10395ebc Changed the tests for Permission Denied to use /root, otherwise it caused Not Found. 2011-11-04 18:01:58 +00:00
Kenneth_aa_cp 9f22922cd9 Added basic low-level message logging, for those who has problems this might help interpret what happens. 2011-11-04 17:57:35 +00:00
Kenneth_aa_cp a39dcbf3ae Added some more documentation for methods in SshClient class. 2011-11-04 14:00:05 +00:00
Kenneth_aa_cp 4ea8d5c241 Fixed Download_Forbidden test to actually download and not upload. 2011-11-04 12:58:54 +00:00
Kenneth_aa_cp 231081729f Fixed a bug that was left after reworking compression. Caused Remote host closed the connection. 2011-11-04 08:37:10 +00:00
olegkap_cp 8680a84416 Add ZlibStream and refactor compression related code for fufutre zlib support. 2011-09-28 20:29:49 +00:00
olegkap_cp 99adc4de8b Make LastWriteTime and LastAccessTime properties updatable 2011-09-28 14:16:31 +00:00
olegkap_cp 44ace626b3 Fix regex to allow host to start with number 2011-09-19 12:51:58 +00:00
olegkap_cp 799e6d54b9 Internal changes, replace Dictionary<string,SftpFileAttributes> with KeyValuePair<string,SftpFileAttributes>[]. 2011-09-16 16:50:00 +00:00
olegkap_cp 91245999d9 Add additional BeginUploadFile method 2011-09-15 13:33:36 +00:00
olegkap_cp 1c8a03abb1 Fix encoding support and send command always encoded as UTF-8 2011-09-15 13:21:19 +00:00
olegkap_cp 234cd1e024 Update Silverlight and WindowPhone projects and make it compilable.
Apply new file naming convention for silverlight and windows phone project files
2011-09-15 12:52:35 +00:00
olegkap_cp b52679c0ef Minor code performance improvment, replace Array.Copy with Buffer.BlockCopy 2011-09-14 13:37:38 +00:00
olegkap_cp 2fc80afd6b Add file overwrite option to UploadFile method 2011-09-12 19:26:10 +00:00
olegkap_cp 2760c05e21 Implement write pipelining
Other minor peromnace improvments
2011-09-12 18:53:24 +00:00
olegkap_cp b0458769df Fix random bytes arrays generation size 2011-08-31 00:59:18 +00:00
olegkap_cp 83884c34aa Refactor and remove usage of Network stream to make it compartible with Silverlight
Make silverlight project compilable (still cannot connect, signature fails)
2011-08-30 03:01:46 +00:00