Shikhar Bhushan
ee07072846
Make window size a long, as it can be upto (2^32 - 1)
...
Fix for #57
2012-02-06 22:24:52 +00:00
Shikhar Bhushan
d38bbbcdf7
clearer...
2012-02-05 19:54:42 +00:00
Shikhar Bhushan
bc59c81dbc
Refactor TransferListener interface to support thread-safe, immutable implementation.
...
Fix #56
2012-01-29 22:54:17 +00:00
Shikhar Bhushan
d70d37cf4e
Version string update
2012-01-29 22:52:59 +00:00
hierynomus
f5db3e1563
Set default tty to vt100, as specified in the javadoc
2012-01-19 10:19:19 +01:00
Shikhar Bhushan
7e524f5c6f
Make disconnect() an operation that can be repeated without side-effects beyond the first call.
2012-01-08 10:20:46 +00:00
Shikhar Bhushan
9b0d39a798
Remove the SFTPClient.getFileTansfer() method that has typo altogether as this is a simple change to make for clients.
2012-01-08 09:30:05 +00:00
Shikhar Bhushan
81e36153d7
wrapping
2012-01-08 09:10:07 +00:00
Shikhar Bhushan
3026be282a
Refactored the local port forwarding API; give caller control over initializing and cleaning up the server socket used.
...
Also removed 'server socket factory' stuff from SocketClient.
2012-01-05 22:26:44 +00:00
Shikhar Bhushan
1ff4772f3f
update id string
2011-12-20 11:12:35 +00:00
Shikhar Bhushan
22a5ffe735
fix for #47 - should send data down rather than sitting around waiting for an adjustment if there is window space available
2011-12-20 10:41:49 +00:00
Shikhar Bhushan
7a77f85ced
docfix
2011-12-20 10:37:32 +00:00
Shikhar Bhushan
0002fe8b40
Made some Buffer subclasses final
2011-12-19 22:52:41 +00:00
Shikhar Bhushan
3028e7f218
Fix logging of window adjustments
2011-12-19 21:56:44 +00:00
Shikhar Bhushan
333e1cb7b8
small cleanup
2011-12-04 19:10:34 +00:00
Shikhar Bhushan
945d430916
Removed deprecated Session.Command's methods - getOutputAsString() and getErrorAsString()
2011-12-04 18:26:05 +00:00
Shikhar Bhushan
7d53649a85
.
2011-12-04 18:23:15 +00:00
Shikhar Bhushan
e193db9a14
Fix example in SSHClient doc
2011-12-04 18:14:27 +00:00
Shikhar Bhushan
a942edb911
Add SFTPClient.getFileTransfer() and deprecate getFileTansfer() which has typo
2011-12-04 18:11:30 +00:00
Shikhar Bhushan
137a7f5956
(reformat)
2011-12-04 17:48:42 +00:00
Shikhar Bhushan
718ff503df
Merge pull request #41 from hierynomus/known-hosts
...
OpenSSH Known hosts format re-implemented
2011-12-04 09:35:58 -08:00
rws
07c61b14e8
Change SocketClient to public so that SSHClient can be mocked for testing.
2011-12-04 21:51:58 +08:00
hierynomus
4b175e6938
Re-implemented OpenSSHKnownHostsVerifier to deal with the real format
2011-11-10 09:51:18 +01:00
Shikhar Bhushan
f1b3dbb102
Restore mutual exclusion of sendChannelRequest() and gotResponse() in AbstractChannel (but rather than make methods synchronized do it on the queue, which itself doesn't need to be thread-safe). Regression due to 1a2351c5ee. Fixes #35 .
2011-10-02 09:47:49 +01:00
Shikhar Bhushan
43b0599e1f
let's make next release sshj 0.6.0
2011-09-26 12:37:21 +01:00
hierynomus
184236c3d5
Added upload filter capability to SCPUploadClient
2011-09-26 11:49:07 +02:00
Shikhar Bhushan
a5272dc413
Merge branch 'master' of github.com:shikhar/sshj
2011-09-14 22:11:29 +01:00
hierynomus
ef082c668a
Fixed bug in SFTP FileMode for AIX/Unix directory mask
2011-09-14 11:02:35 +02:00
Shikhar Bhushan
e66386eb1c
Local window exhaustion -> ConnectionException
2011-09-07 21:45:44 +01:00
Shikhar Bhushan
0937ec9800
minor
2011-09-07 21:24:49 +01:00
Shikhar Bhushan
01765d24d2
AbstractChannel - no reason for channel request response events to share the same underlying lock object. #27
2011-08-29 16:45:12 +01:00
Shikhar Bhushan
1a2351c5ee
AbstractChannel - make chanReqResponseEvents a ConcurrentLinkedQueue, so don't have to have sendChannelRequest() & gotResponse() as synchronized methods. #27
2011-08-29 16:41:27 +01:00
Shikhar Bhushan
1cec011401
chown / chmod / chgrp in StatefulSFTPClient -- these all delegate to setattr which is overriden in StatefulSFTPClient to do cwdification. #28
2011-08-29 16:21:10 +01:00
Neil Prosser
09cf21f61a
Some stateful methods that needed cwdifying
2011-08-27 00:30:20 +01:00
Shikhar Bhushan
04c2e7b6b8
Client version string update
2011-07-27 19:52:27 +01:00
Shikhar Bhushan
b950f88f52
SSHClient implements Closeable
2011-07-24 20:50:01 +01:00
Shikhar Bhushan
3267860db4
mass auto-format
2011-07-24 20:48:00 +01:00
Shikhar Bhushan
d6eb5a040e
Non-final ChannelOutputStream field may be null if we haven't received channel open confirmation or channel open failed. So do null-check.
2011-07-16 10:19:46 +01:00
Shikhar Bhushan
6b66a952d4
Session#changeWindowDimensions was broken, wrong channel request.
...
Fix for #21
2011-07-03 10:59:40 +01:00
Shikhar Bhushan
aa4faf3f25
Merge pull request #20 from cloudera/forUpstream
...
Don't leak PrivateKeyStringResource private keys via toString()
2011-06-23 13:46:37 -07:00
Adar Dembo
4be02450dd
Don't leak PrivateKeyStringResource private keys via toString()
2011-06-22 17:52:46 -07:00
Shikhar Bhushan
fb0f3afa17
fix javadoc warnings
2011-06-19 18:30:52 +01:00
Shikhar Bhushan
eaee42b017
Fix for GH-18
...
Need to explicitly tell the BigInteger constructor that K (generated secret) is a positive number.
2011-06-19 17:53:56 +01:00
Shikhar Bhushan
8b61d96808
changed some things around, lesser conversions / copying. still not found the bug. grr.
2011-06-19 17:52:00 +01:00
Shikhar Bhushan
73fcc81e83
Unused methods
2011-06-18 20:14:44 +01:00
Shikhar Bhushan
0f7926d4fa
.
2011-06-18 14:45:28 +01:00
Shikhar Bhushan
ca6f15650a
Useless indirection
2011-06-18 14:44:58 +01:00
Shikhar Bhushan
ccabc1a20c
vestige of eclipse formatting
2011-06-18 13:48:25 +01:00
Shikhar Bhushan
cb2986d32e
Update client version string
2011-06-18 13:48:10 +01:00
Philip Langdale
27c60cee60
Add support for public key authentication with keys as strings.
...
Currently, only keys as file locations are supported. This change
adds support for keys as strings.
Significant changes are:
1) Introduction of a new Resource type for keys as strings.
2) Initialization of a key provider with two strings (private and public keys)
Leaving the public key null is equivalent to not having a .pub file.
3) Obtaining the reader for the resource is refactored into the resource itself
to avoid requiring knowledge of the type outside the resource.
The loadKeys and authPublickey convenience methods are not duplicated for
the string based loading as we currently don't need them but they could be
if desired (although method signature collisions will be a problem).
2011-06-07 15:55:39 -07:00