[ANNOUNCE] Apache MINA SSHD 2.13.1 released

2024-06-24 Thread Guillaume Nodet
: Fix class name in BuiltinIoServiceFactoryFactories (regression in 2.6.0) A big thanks to everyone that helped in this release. On behalf of the Maven Mina PMC team, Guillaume Nodet

[ANNOUNCE] Apache MINA SSHD 2.12.0 released

2024-01-18 Thread Guillaume Nodet
always announce their support for strict key exchange. On behalf of the Maven Mina PMC team, Guillaume Nodet - To unsubscribe, e-mail: users-unsubscr...@mina.apache.org For additional commands, e-mail: users-h...@mina.apache.org

Re: Implementing a 'filesystem' module in MINA to bridge with an Apache commons-net FTPClient

2023-12-08 Thread Guillaume Nodet
e to > the limitations of FTP, but it seems like MINA only really uses a few > methods from it anyway. > > > Thank you > Will > -- Guillaume Nodet

[ANNOUNCE] Apache MINA SSHD 2.11.0 released

2023-10-20 Thread Guillaume Nodet
tpModuleProperties`. On behalf of the Apache MINA project, Guillaume Nodet

[ANNOUNCE] Apache MINA SSHD 2.9.3 released

2023-10-20 Thread Guillaume Nodet
: * CVE-2023-35887 / SSHD-1324 Rooted file system can leak informations * Fix reproducible builds issue * Support building with Maven 3.9.x On behalf of the Apache MINA project, Guillaume Nodet

CVE-2023-35887: Apache MINA SSHD: Information disclosure bugs with RootedFilesystem

2023-07-07 Thread Guillaume Nodet
Affected versions: - Apache MINA SSHD 1.0 before 2.10 Description: Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Software Foundation Apache MINA. In SFTP servers implemented using Apache MINA SSHD that use a RootedFileSystem, logged users may be able to di

Re: symbolicy links errors

2023-03-02 Thread Guillaume Nodet
gt; Gr. Simon > > - > To unsubscribe, e-mail: users-unsubscr...@mina.apache.org > For additional commands, e-mail: users-h...@mina.apache.org > > -- Guillaume Nodet

CVE-2021-30129: DoS/OOM leak vulnerability in Apache Mina SSHD Server

2021-07-12 Thread Guillaume Nodet
Description: A vulnerability in sshd-core of Apache Mina SSHD allows an attacker to overflow the server causing an OutOfMemory error. This issue affects the SFTP and port forwarding features of Apache Mina SSHD version 2.0.0 and later versions. It was addressed in Apache Mina SSHD 2.7.0 This

Re: [ANNOUNCE] Apache SSHD 2.7.0 released

2021-05-31 Thread Guillaume Nodet
Mina SSHD supports SSH2 and there's no plan to support SSH1. Cheers Guillaume Nodet P.S.: Please do not cross-post to several lists... Le lun. 31 mai 2021 à 11:32, Vishnu Priya a écrit : > Does this support SSH version 1 and version 2 both? > > Regards, > Vishnupriya > &

[ANNOUNCE] Apache SSHD 2.7.0 released

2021-05-31 Thread Guillaume Nodet
he distributions are available from the Apache Software Foundation distribution mirrors http://mina.apache.org/sshd-project/downloads.html and from maven central. On behalf of the Apache Mina team, Guillaume Nodet

Re: DirectoryScanner and have connection with sftpclient still I am getting base dir doesn’t exist error.

2020-09-22 Thread Guillaume Nodet
n you please let me know how can I get dir list using DirectoryScanner > with Sftpclient. > -- > Thanks & Regards, > Netram Sahu > +91 9653330834 > -- Guillaume Nodet

Re: Reminde: How to use ls command with SftpClient Apache library

2020-09-21 Thread Guillaume Nodet
On Mon, Sep 21, 2020 at 11:44 AM Guillaume Nodet > wrote: > >> You'll find an example of using the Sftp Client API in the following test: >> >> >> https://github.com/apache/mina-sshd/blob/master/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/SftpTransferTes

Re: Reminde: How to use ls command with SftpClient Apache library

2020-09-20 Thread Guillaume Nodet
ahu 6A >> wrote: >> >>> I am passing this url from application and based on these url want to >>> Remove Text.txt file. >>> >>> dir/dir1*/Test.txt, >>> dir/dir1?/Test.txt >>> >>> How can I do it with Sftpfilesyatem, >>>

[ANNOUNCE] Apache SSHD 2.5.1 released

2020-07-01 Thread Guillaume Nodet
wse/SSHD-1022>] - NPE in SftpOutputStreamAsync.flush() The distributions are available from the Apache Software Foundation distribution mirrors http://mina.apache.org/sshd-project/downloads.html and from maven central. On behalf of the Apache Mina team, Guillaume Nodet

[ANNOUNCE] Apache SSHD 2.5.0 released

2020-06-22 Thread Guillaume Nodet
ct SftpVersionSelector when establishing a new connection The distributions are available from the Apache Software Foundation distribution mirrors http://mina.apache.org/sshd-project/downloads.html and from maven central. On behalf of the Apache Mina team, Guillaume Nodet

Re: Mina Sshd, JGit, RSA Passphrases

2020-01-07 Thread Guillaume Nodet
e/mina-sshd and the various doc bits in https://github.com/apache/mina-sshd/tree/master/docs An entry is clearly missing for agent support... Guillaume > > > -David > > > - > To unsubscribe, e-mail: users-unsubscr...@mina.apache.org > For additional commands, e-mail: users-h...@mina.apache.org > > -- Guillaume Nodet

[ANNOUNCE] Apache SSHD 2.1.0 released

2018-10-02 Thread Guillaume Nodet
- so future releases should no longer suffer from this problem. We recommend all users to upgrade to this release - we consider this a stable and production ready release. On behalf of the Apache Mina team, Guillaume Nodet

Re: Different root and initial directories for SFTP

2018-05-25 Thread Guillaume Nodet
the SSHD server. > > Hopefully that helps describe what I’m trying to do. > > > > On May 24, 2018, at 8:56 AM, Guillaume Nodet wrote: > > > > Have you tried setting home dirs for your users on the > VirtualFileSystemFactory > > ? > > > > v

Re: Different root and initial directories for SFTP

2018-05-24 Thread Guillaume Nodet
login. This makes is really hard for me to simulate > navigating the virtual filesystem in my tests because the paths are > different. > > Any ideas/suggestions would be greatly appreciated!! > > Quinn Stevenson > > > -- Guillaume Nodet

[ANN] Apache Mina SSHD 1.7.0 Released

2018-01-23 Thread Guillaume Nodet
styleName=Text&projectId=12310849&Create=Create&atl_token=A5KQ-2QAV-T4JA-FDED%7C47f5fd1e799680219ff14477b5b2c29ce7aaf6fd%7Clin Cheers, Guillaume Nodet

Re: SSHD session init issue? (msg order)

2017-11-05 Thread Guillaume Nodet
ivy+48+/+821+09+Bratislava+/+Slovakia&entry=gmail&source=g> > > +421 2 209 101 41 / mmarsa...@frinx.io > <2%20209%20101%2041%20/%20mmarsa...@frinx.io> / *www.frinx.io > <http://www.frinx.io>* > > > > [image: cid:image001.jpg@01D26688.DDA92180] > > > -- Guillaume Nodet

Re: 1.5.0 missing in maven central

2017-07-01 Thread Guillaume Nodet
I was suspecting that. > > > > > > > > Regarding 1.5.0, Guillaume stated that the license issue might not be > > > > annoying, being optional. If so - but it needs to be double checked > -, > > > > the 1.5.0 vote can be rebooted (ie, no need for another vote, it's > > > > enough for me to switch from a -1 to a +1). > > > > > > > > > > > > -- > > > > Emmanuel Lecharny > > > > > > > > Symas.com > > > > directory.apache.org > > > > > > > > > > > > > > > > > > > -- > > BEKK Open > > http://open.bekk.no > > > > TesTcl - a unit test framework for iRules > > http://testcl.com > > > -- Guillaume Nodet

Re: How to configure ChannelShell correctly? (Part 2)

2017-06-29 Thread Guillaume Nodet
in later. > Is that the right way to do it? Should I call getIn() later to obtain an > InputStream? What is "inverted out" for? > Thanks,Nick > -- Guillaume Nodet

Re: Regarding the SSHD 1.5.0 Release ETA

2017-05-19 Thread Guillaume Nodet
e 11/05/2017 à 09:45, Oleg Nenashev a écrit : > > > Hello, > > > > > > Thanks for the response! Looking forward to get a decision. > > > > > > I would probably wait till the Jigsaw mess gets resolved somehow ;) > > > > You mean, 2027 ? > > > > -- > > Emmanuel Lecharny > > > > Symas.com > > directory.apache.org > > > > > -- Guillaume Nodet

Re: Regarding the SSHD 1.5.0 Release ETA

2017-05-10 Thread Guillaume Nodet
get its ETA to adjust our > plans. > Thanks in advance, > Oleg Nenashev (github: oleg-nenashev) > Jenkins Project > -- Guillaume Nodet

Re: Is there a maven snapshot reporitory for this projet

2016-11-28 Thread Guillaume Nodet
gt; Emmanuel Lecharny > > > > Symas.com > > directory.apache.org > > > > > > > -- > I like: Like Like - The likeliest place on the web > <http://like-like.xenei.com> > LinkedIn: http://www.linkedin.com/in/claudewarren > -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: SSHD client - is it possible to reuse a session?

2016-11-17 Thread Guillaume Nodet
bug, > a misconfiguraiton on my part, > or patently not possible. > > Any assistance would be appreciated. > > Claude Warren > -- > I like: Like Like - The likeliest place on the web > <http://like-like.xenei.com> > LinkedIn: http://www.linkedin.com/in/claudewarren > -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: SshClient#start call multiple times

2016-03-19 Thread Guillaume Nodet
shHandler.java#l89 > < > https://github.com/opendaylight/netconf/blob/master/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java#l89 > > -- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: Extending sshd to support streaming files from a file repository

2015-12-18 Thread Guillaume Nodet
I'm not sure to understand. You want your client to use the SSH / SFTP protocol to connect to the server, and then, the server would call a web service to actually query the file system over the web service, right ? If you don't want your client to directly use the custom FileSystemProvider, and f

Re: Sftp client - large directory listing

2015-11-02 Thread Guillaume Nodet
You need to call readDir(h) multiple times until it returns null which signifies that the whole directory has been read. 2015-10-15 20:20 GMT+02:00 Gabriel Kapitany : > Hi all, > > > > I’m using the SSH client library and trying to list a remote directory > containing large number of files +10,0

Re: Apache SSHD and Apache MINA integration

2015-11-02 Thread Guillaume Nodet
It may be easier for you to go to a lower level though. SshClient client = SshClient.setUpDefaultClient(); ClientSession session = new ClientSessionImpl(client, new MinaSession(null, ioSession)); session.setUsername(...); ... I suppose your code snippet should work too, though you'd have to call

Re: Is there an easy way to parse an OpenSSH RSA/DSA/ECDSA pub/priv keypair?

2015-11-02 Thread Guillaume Nodet
clGP66du6XhU3lHemqVMAAACAFVAaT56J7KnM2FGD4ghQ5+dduM3mzRrokac7oEt9gz18n0yK5bBRMUq4evEwsRyqEH8lipdvF416ggK/I5U5ww2XwsfqqJ8mAPuGpC49cIQzuCWDi1WMG0OA91t/bTD4yEt0DA/7Vqo+PVFbxzVbAZtoGMa/0trjvIgxRJfLOss= > jonathan.fisher@apollo > > > On Mon, Nov 2, 2015 at 10:20 AM, Guillaume Nodet > wrote: > > > The code is used to

Re: Is there an easy way to parse an OpenSSH RSA/DSA/ECDSA pub/priv keypair?

2015-11-02 Thread Guillaume Nodet
na.apache.org/sshd-project/downloads.html > > > > Just noticed this is not showing a changelog or a download link for 1.0. > I > > saw v1.0 in Nexus, but since it wasn't listed as a release I figured it > was > > a fluke. > > > > On Sun, Nov 1, 2015 at

Re: SFTP - Strange Heap Behaviour under load

2015-11-01 Thread Guillaume Nodet
Yes, please reproduce the error and take a memory dump somehow, and raise a JIRA issue and attach the dump to it. 2015-10-27 8:17 GMT+01:00 Stefan Magnus Landrø : > Have you performed a heap dump and tried analyzing it with eclipse mat ( > https://eclipse.org/mat/) or similar? You could add a jvm

Re: Is there an easy way to parse an OpenSSH RSA/DSA/ECDSA pub/priv keypair?

2015-11-01 Thread Guillaume Nodet
gt; > On Sat, Oct 31, 2015 at 9:12 AM, Jonathan S. Fisher < > jonat...@springventuregroup.com> wrote: > > > > > > https://mina.apache.org/sshd-project/apidocs/org/apache/sshd/common/util/SecurityUtils.html > > > > Can you point me to that method in the docs? I'm not

Re: Is there an easy way to parse an OpenSSH RSA/DSA/ECDSA pub/priv keypair?

2015-10-30 Thread Guillaume Nodet
You can try with SecurityUtils.loadKeyPairIdentity 2015-10-30 17:36 GMT+01:00 Jonathan S. Fisher < jonat...@springventuregroup.com>: > Hey guys, > > I've been pouring through examples and source code, and I cannot figure out > how to do this. I have a pair of Strings that is the contents of a u

Re: Extending SFTP Subsystem to push to HDFS

2015-09-17 Thread Guillaume Nodet
SSHD 1.0 uses the standard NIO2 FileSystem api. For hadoop, see https://issues.apache.org/jira/browse/HADOOP-3518 and there's a link to an implementation at https://github.com/damiencarol/jsr203-hadoop So simply registering the provider should work with SFTP. 2015-09-17 10:29 GMT+02:00 Olivier Gir

Re: [sshd][client]How to detect command completion?

2015-06-11 Thread Guillaume Nodet
7;t think there's an easy way to do so. Guillaume Nodet 2015-06-12 8:36 GMT+02:00 Satya Deep Maheshwari : > Hi > > I am using ClientChannel to invoke commands on a remote machine via ssh. I > am sending remote commands by writing on the NoCloseInputStream associated > with

Re: sshd-sftp hasn't been released since version 0.11

2015-05-09 Thread Guillaume Nodet
The problem is that this module has never been fully completed and given the lack of work on it and duplication with the embedded version of sftp support, it has not been released for some time. It has even been deleted from the master branch for 1.x. If anyone is willing to support it, this decis

Re: Idle SSHD sessions still managed

2015-05-09 Thread Guillaume Nodet
nagedSessions() if I move the check directly in the SessionFactory as > you suggested earlier. > What is the best way to implement that bound on the global number of > sessions? > > -Original Message- > From: Guillaume Nodet [mailto:gno...@apache.org] > Sent: Thursda

Re: Idle SSHD sessions still managed

2015-05-07 Thread Guillaume Nodet
This should work. The idle timeout will close the ssh session which should in turn close the ioSession, and that session should be removed from the list of managed sessions. However, this happens slightly asynchronously, as the idle timeout will trigger the write of the disconnect message and the s

Re: Equivalent of BlacklistFilter for SSHD

2015-05-07 Thread Guillaume Nodet
You could try to implement your own derived class of org.apache.sshd.server.session.SessionFactory and throw an exception if the connection is to be blacklisted. However, looking at the code, I think you're right, as any exception will not result in the session to be unmanaged, at least in the Nio2

Re: [ANN] SSHD 0.14.0 released

2015-03-16 Thread Guillaume Nodet
Thx, it should be fixed now. 2015-03-16 10:18 GMT+01:00 Stefan Mueller : > 1) Link to binary file is wrong on all servers: > > Example link from website: > http://mirror.synyx.de/apache/mina/sshd/0.14.0/dist/apache-sshd-0.14.0.zip > > Path on server: > http://mirror.synyx.de/apache/mina/sshd/0.14

[ANN] SSHD 0.14.0 released

2015-03-10 Thread Guillaume Nodet
[SSHD-381] - Wrong values used for SSH_FXP_OPEN flags ** Test * [SSHD-396] - Fixed SftpTest#testOpen to work correctly on Windows ** Wish * [SSHD-405] - Please review AbstractClientChannel @deprecated getter methods Guillaume Nodet

Re: SSHD Server subsystem supporting parameters?

2015-02-10 Thread Guillaume Nodet
No that's not supported. I think the correct way would be for the client to send arguments through the streams that are used to communicate with the subsystem. 2015-02-10 22:50 GMT+01:00 Wen, Bo : > Hi, > > Is there a way for SSHD server subsystem to support extra parameters? For > example, from

Re: SSHd restrict failed login attempts

2015-01-13 Thread Guillaume Nodet
any way I can ask the session if the current authentication > attempt is the last allowed request? > … just trying to avoid having to track this in my code. > > > > Simon > > > > On 13 Jan 2015, at 11:52, Guillaume Nodet wrote: > > > > 2015-01-13 12:00 GMT+01:00

Re: SSHd restrict failed login attempts

2015-01-13 Thread Guillaume Nodet
om the ServerSession presented to the > Authenticator interface. > > session.getIoSession().getRemoteAddress() > > TIA > > Simon Temple > > > Guillaume Nodet

[SSHD] [DISCUSS] Switch SSHD to JDK 7 and NIO FileSystem api for SFTP client and server side

2014-12-01 Thread Guillaume Nodet
e, as Java 6 has been EOL'ed by Oracle more than 18 months ago). Supporting both APIs in the same code does not really seem an easy thing to do. Thoughts welcomed ! Cheers, Guillaume Nodet -- ---- Guillaume Nodet Red Hat, Open Source Integrat

[SSHD] [DISCUSS] Switch SSHD to JDK 7 and NIO FileSystem api for SFTP client and server side

2014-12-01 Thread Guillaume Nodet
e, as Java 6 has been EOL'ed by Oracle more than 18 months ago). Supporting both APIs in the same code does not really seem an easy thing to do. Thoughts welcomed ! Cheers, Guillaume Nodet

Re: [Apache SSHD] list command problem for directories containing broken filelinks

2014-11-22 Thread Guillaume Nodet
Maybe there is a configuration value I have not stumbled > upon that will address this issue? > > Tom > > -- --- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: [mina-sshd] How to do `ssh -D` port forwarding with the SshClient

2014-11-17 Thread Guillaume Nodet
I played with socks a bit today and came up with this initial implementation: https://github.com/gnodet/mina-sshd/commit/3807bcf07655e7759ba08b42896f62708a4970c5 2014-11-17 11:30 GMT+01:00 Guillaume Nodet : > I've tried your setup using mina sshd, a native ssh client (ssh -Nn -D > 1

Re: [mina-sshd] How to do `ssh -D` port forwarding with the SshClient

2014-11-17 Thread Guillaume Nodet
I've tried your setup using mina sshd, a native ssh client (ssh -Nn -D 1080 -p 8000 admin@localhost) and firefox with socks5 and it seems to work well, all http requests being routed through the ssh server. However, the socks protocol is not supported using mina sshd as a client (hence the use of t

Re: ClientSession.authPassword(user, pwd) documentation required

2014-11-10 Thread Guillaume Nodet
the newer authentication mechanism using client.addPasswordIdentity(xx); client.auth().verify(); which will be easier from a user point of view, as you won't have to deal with password/interactive stuff. Cheers, Guillaume Nodet 2014-10-27 10:18 GMT+01:00 Sapna Bharg

Re: OpenSSH integration

2014-11-10 Thread Guillaume Nodet
If you look at the main SshClient code, you'll see the main() method will do exactly that: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/SshClient.java#L443 2014-10-30 22:04 GMT+01:00 Rob Vesse : > Hey All > > Is anyone integrating SSHD with OpenSSH, spec

Re: How to set max count connections in sshd service.

2014-11-10 Thread Guillaume Nodet
Currently, we only have a max concurrent session per user, not a global one. It can be configured using: server.setProperty(ServerFactoryManager.MAX_CONCURRENT_SESSIONS, "1") to only accept a single session for each user. Unfortunately, there's no way to configure a global maximum number of sessi

Re: SSHD Example

2014-10-16 Thread Guillaume Nodet
If you want more than simple unit tests, you can have a look at karaf for example: https://github.com/apache/karaf/blob/master/shell/ssh/src/main/java/org/apache/karaf/shell/ssh/Activator.java#L127 2014-10-16 20:17 GMT+02:00 Robert Middleton : > Does anybody have a working example of embedding S

Re: SSHD Problems with SFTP

2014-09-26 Thread Guillaume Nodet
Ok, i understand now. Please raise a JIRA issue. I think there are a few things to review around that. 2014-09-26 15:56 GMT+02:00 Stefan Mueller : > It did work. So the method isWritable() has to be called in truncate() as > it > is already done in other methods. > And developers (me ;) ) have t

Re: SSHD Problems with SFTP

2014-09-26 Thread Guillaume Nodet
on't understand ... Thoughts ? 2014-09-26 12:19 GMT+02:00 Stefan Mueller : > Guillaume Nodet-3 wrote > > The empty file must be caused by the truncate flag on the SSH_FXP_OPEN > > command. > > It looks like the flags passed are SSH_FXF_CREAT | SSH_FXF_TRUNC. > > I think yo

Re: ChannelExec API Help required

2014-09-25 Thread Guillaume Nodet
You have 3 ways to use a client channel now: * direct : using setIn(), setOut() and setErr() before opening the channel https://github.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/ClientTest.java#L282 * inverted: using getInvertedIn(), getInvertedOut() and getInverte

Re: Problem Using SFTP Client

2014-09-25 Thread Guillaume Nodet
Both issues are now fixed in master. 2014-09-22 19:08 GMT+02:00 George Sexton : > Is there a particular reason. DefaultSftpClient.write(path) doesn't add > the option for OpenMode.Create? > > It seems like it should. > > > On 9/22/2014 1:08 AM, Guillaume Nodet wrote: &

Re: Problem Using SFTP Client

2014-09-22 Thread Guillaume Nodet
Would you mind raising a JIRA for that ? This is a bug, as the the Closeeable interface specifies "If the stream is already closed then invoking this method has no effect." Cheers, Guillaume 2014-09-22 4:18 GMT+02:00 George Sexton : > > On 9/20/2014 1:43 AM, Guillaume Nodet wro

Re: Problem Using SFTP Client

2014-09-20 Thread Guillaume Nodet
Can you bypass the call to close() for now and see if the file has been read correctly ? Also, and just fwiw, the client api can be used this way: session.addPasswordIdentity(m_password); session.auth().verify(); authenticated = true; 2014-09-20 6:28 GMT+02:00 George Sexton : > > On 9/19/201

Re: SSHD SshClient - should I reuse the same instance for multiple independent sessions?

2014-08-25 Thread Guillaume Nodet
s > per-session UserInteractive support. I would greatly appreciate any > feedback on it. > > Regards, > -matt > > -Original Message- > From: Guillaume Nodet [mailto:gno...@apache.org] > Sent: Sunday, August 24, 2014 8:11 AM > To: users@mina.apache.org > Subject: R

Re: SSHD SshClient - should I reuse the same instance for multiple independent sessions?

2014-08-24 Thread Guillaume Nodet
I think it would be better to use a single SshClient. All the threading / resource management has been designed with this use case, that's why you end up with lots of threads if you create a lot of those objects. For the authentication, I suppose you're not really prompting the user for the passw

Re: Checking if ssh session is connected

2014-08-05 Thread Guillaume Nodet
2014-08-05 12:58 GMT+02:00 Jorge Jordão : > Hi, > > I am upgrading some code from sshd-core version 0.9.0 to 0.12.0. > > There's this method using > clientSession.getState().equals(Session.State.Running) > for determining whether the session is still active. > > I believe one of the purposes w

Re: Security Question

2014-07-21 Thread Guillaume Nodet
It should be safe as all execution of code are forbidden for users. 2014-07-21 17:21 GMT+02:00 Haripada Bhowmick : > Team, > > I want to setup Apache SSHD Server in my Linux box . Few of my clients will > be using SSH Tunnel using my Linux BOX. > > My aim is to ENABLE port forwarding ONLY ,

Re: sshd client streams

2014-07-21 Thread Guillaume Nodet
If you want to read the output or error streams, you can use getInvertedOut() and getInvertedErr() instead of using setOut() and setErr(). This will give you a blocking InputStream on the command output. 2014-07-21 11:41 GMT+02:00 Davide Gesino : > I am developing a Command Line Interface simula

Re: SSHD Problems with SFTP

2014-07-07 Thread Guillaume Nodet
hat should not be an issue. Guillaume Nodet 2014-07-07 12:33 GMT+02:00 Stefan Mueller : > I have two problems with SFTP that I can not chase down. I hope you can > help > me by looking at the server log, because I could not get a simple working > example yet. > > > The fir

Re: sshd - async interface

2014-06-30 Thread Guillaume Nodet
ount of changes that required in my simple case to use > this interface and currently it is much too large, so I will not be > able to actually use it in the near future. > > Thanks! > Alon > > On Fri, Jun 6, 2014 at 9:48 AM, Guillaume Nodet wrote: > > I've enhanced S

Re: SSHD Server Settings

2014-06-30 Thread Guillaume Nodet
There's no integration between FtpServer and Sshd, so you can't reuse the user manager in SSHD. SSHD supports max-concurrent-sessions (max number of sshd connections per username) and idle-timeout settings though. IP filtering may be implemented using a SessionListener. The other ones would have to

Re: Trouble with SFTP resume upload

2014-06-14 Thread Guillaume Nodet
Good catch ! Could you please raise a JIRA for this issue ? I think your proposal is correct. 2014-06-14 2:49 GMT+02:00 Michael Benovich : > Hi, > > I very recently began using SSHD to run my own SFTP server. I am running > version 0.11.0 and I am having trouble resuming uploads with FileZilla a

Re: sshd - async interface

2014-06-05 Thread Guillaume Nodet
b.com/apache/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/util/AsyncEchoShellFactory.java I would appreciate any input ... 2014-04-20 0:33 GMT+02:00 Alon Bar-Lev : > On Sun, Apr 20, 2014 at 1:19 AM, Guillaume Nodet > wrote: > > 2014-04-19 20:43 GMT+02:00 Alon Bar-Lev

Re: AccessControlException with sshd > 0.8.0

2014-05-19 Thread Guillaume Nodet
en though the sshd > obviously needs to access the same key file. > > Cheers, > Reto > > > On Mon, May 19, 2014 at 3:07 PM, Guillaume Nodet > wrote: > > > I'm not really sure what you're talking about, but if you run under a > > security manager, you nee

Re: AccessControlException with sshd > 0.8.0

2014-05-19 Thread Guillaume Nodet
I'm not really sure what you're talking about, but if you run under a security manager, you need to ensure that the sshd code is granted correct permissions. In particular, the use of the key pair provider configure to load host keys from a file requires a file read permission on the given file.

Re: Load issue in apache SSHD when using ChannelDirectTcpip

2014-05-16 Thread Guillaume Nodet
The second problem is entirely caused by the way you send and read the data (and consequently by the fact that the server echoes the incoming data). The SSH protocol uses windows for flow-control, so when the remote window is full, the client or server will stop sending more data. To work around th

Re: Load issue in apache SSHD when using ChannelDirectTcpip

2014-05-12 Thread Guillaume Nodet
g for some space. That's because your client side does not consume the input stream until after having written all the data. So that needs to be changed in some way in your code. Cheers, Guillaume Nodet 2014-05-12 8:25 GMT+02:00 Maheedhar : > server.java < > http://apache-mina.

Re: Using SSHD without any third-party JCE provider

2014-05-10 Thread Guillaume Nodet
2014-05-07 9:48 GMT+02:00 Marian Seitner : > Hi, > > is it possible to use SSHD without any third-party JCE provider? > Yes, though you need at least some JCE support. > > I tried it but ran into the following problem: > 2014-04-07 13:29:57,579 WARN [NioProcessor-12] > org.apache.sshd.client.se

Re: apache-sshd-0.11.0

2014-05-04 Thread Guillaume Nodet
The vote has been closed and the release published. I've updated the website ( http://svn.apache.org/viewvc?view=revision&revision=r1589029), not sure why it does not show the latest content though. 2014-05-04 1:35 GMT+02:00 Emmanuel Lécharny : > Le 5/3/14 11:56 PM, Alon Bar-Lev a écrit : > > Hi

Re: sshd - running interactive scripts

2014-04-29 Thread Guillaume Nodet
I just tried your script using the following command: ssh localhost sh /Users/gnodet/work/tmp/myscript.sh and I don't see the prompt either, so it may be the read command bypassing the prompt when the input stream is not the console. You could try the following: #!/bin/sh echo Welcome echo -n "

Re: Data on stdin does not get transferred - stdout+stderr work fine

2014-04-21 Thread Guillaume Nodet
I did. Feel free to add any comment. Le lundi 21 avril 2014, Matthew DeVore a écrit : > Did you already raise one? I saw this: > https://issues.apache.org/jira/browse/SSHD-312 > > > > 2014-04-20 23:25 GMT-07:00 Guillaume Nodet > >: > > > Sure, that's a go

Re: Data on stdin does not get transferred - stdout+stderr work fine

2014-04-20 Thread Guillaume Nodet
see if > any > > character made it through, but the deadlock still happens at the same > spot, > > and not even one character makes it through. > > > > > > 2014-04-20 0:43 GMT-07:00 Guillaume Nodet : > > > > The getInvertedIn() output stream is buffer

Re: Data on stdin does not get transferred - stdout+stderr work fine

2014-04-20 Thread Guillaume Nodet
The getInvertedIn() output stream is buffered. If you want to actually send a small amount of data, you need to call flush() after writing to the stream. Happy Easter, Guillaume Nodet 2014-04-20 5:15 GMT+02:00 Matthew DeVore : > Hi, > > I'm trying to integrate Apache SSHD with

Re: sshd - async interface

2014-04-19 Thread Guillaume Nodet
2014-04-19 20:43 GMT+02:00 Alon Bar-Lev : > On Sat, Apr 19, 2014 at 9:15 PM, Guillaume Nodet > wrote: > > Sshd internally uses nio2 by default, which is not based on selectors, > but > > non blocking operations. > > > > On the client part of SSHD, thing

Re: Serious issue in SimpleGeneratorHostKeyProvider class

2014-04-19 Thread Guillaume Nodet
The SimpleGeneratorHostKeyProvider uses its own serialization mechanism, so you can't use it with keys generated with ssh-keygen. Try the FileKeyPairProvider instead. 2014-04-19 10:46 GMT+02:00 Maheedhar : > Hi, > > I create a ssh keypair using "ssh-keygen -t rsa" command in my linux > machine >

Re: sshd - async interface

2014-04-19 Thread Guillaume Nodet
Sshd internally uses nio2 by default, which is not based on selectors, but non blocking operations. On the client part of SSHD, things are mostly asynchronous already: #1 SshClient#connect returns a future on which you can set a callback and that you can use to retrieve the ClientSession asynch

Re: sshd - async interface

2014-04-18 Thread Guillaume Nodet
The asynchronous interface is an interesting idea. Though I'm not sure the using selectors is the best and I'd rather try to change the input/output streams ChannelInput/OutputStream so that ClientChannel returns AsynchronousByteChannel instead. I think we need both sync and async interfaces for th

Re: SSHD exception when client tries to reconnect

2014-03-13 Thread Guillaume Nodet
Not sure which client you're using, but afaik, authentication can only done once for a connection. Also, try with the latest 0.10.1 sshd release. 2014-03-13 11:09 GMT+01:00 SiriSenthilRaam - : > My ssh client tries to communicate with SSHD and it works fine for a while. > After a while the conne

Re: apache-sshd releases

2014-03-05 Thread Guillaume Nodet
2014-03-05 23:19 GMT+01:00 Emmanuel Lécharny : > Le 3/5/14 10:13 PM, Guillaume Nodet a écrit : > > 2014-03-05 18:53 GMT+01:00 Emmanuel Lécharny : > > > >> > >> Can the site[1] be modified with latest? > >> It's already up to date. > >>

Re: apache-sshd releases

2014-03-05 Thread Guillaume Nodet
2014-03-05 18:53 GMT+01:00 Emmanuel Lécharny : > Le 3/5/14 6:44 PM, Alon Bar-Lev a écrit : > > Hi, > > > > I want to ask regarding the release sequence. > > > > At site I see latest is 0.9.0[1]. > > This is the latest release. > > > > At maven central I see 0.10.0[2]. > this is a tag not a release

Re: Remote Port Forwarding

2014-02-10 Thread Guillaume Nodet
You need to register a TcpipForwardingFilter on your client too, so that it can accept to connect. The same class can be used on both sides. client.setTcpipForwardingFilter(new ForwardingFilter() { ... }); 2014-02-07 1:34 GMT+01:00 Kevin Day : > I'm trying to use mina sshd in a remote port for

Re: How to configure AWS S3 as filesystem in Apache SSHD

2014-02-10 Thread Guillaume Nodet
>From an SSHD point of view, file access entry point is done by implementing the org.apache.sshd.common.file.FileSystemFactory. >From a S3 perspective, amazon provides a java client API. There are a few points you'll have to choose: * authentication : how to provide the s3 keys * buckets : rest

Re: Integration of SSHD

2013-12-04 Thread Guillaume Nodet
You can use any SSH client from a unix distribution, or cygwin / putty on Windows. 2013/12/4 Maheedhar > I finished implementation and integration of SSHd into our environment.As > of > now we have both the client and server implementations and they communicate > just fine.We wanted to test wit

Re: Publickey of PublickeyAuthenticator class (MINA SSHD)

2013-11-28 Thread Guillaume Nodet
-- > > I do not know what is wrong. > help me please~ > > > > -- > View this message in context: > http://apache-mina.10907.n7.nabble.com/Publickey-of-PublickeyAuthenticator-class-MINA-SSHD-tp39746.html > Sent from the Apache MINA User Forum mailing list a

Re: Integration of SSHD

2013-11-28 Thread Guillaume Nodet
-- > View this message in context: > http://apache-mina.10907.n7.nabble.com/Integration-of-SSHD-tp39824.html > Sent from the Apache MINA User Forum mailing list archive at Nabble.com. > -- --- Guillaume Nodet Red Hat, Open Source Integratio

Re: SSHD: Restrict SFTP directory

2013-11-28 Thread Guillaume Nodet
r the other? Does anyone have an implementation they are > willing to share? > > Thanks. > > ~Joseph > -- --- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: Apache SSHD setting for pseudo-terminal

2013-11-12 Thread Guillaume Nodet
esult directly or > indirectly from the receipt or use of this communication or any files > attached to it. It is the responsibility of any person using this > communication or opening any files attached to this communication to > implement appropriate measure to ensure the

[ANN] Apache Mina SSHD 0.9.0 released

2013-08-31 Thread Guillaume Nodet
aven central and the download page http://mina.apache.org/sshd-project/download_0.9.0.html Enjoy ! -- --- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: Socket input to SSHD?

2013-08-29 Thread Guillaume Nodet
g to a host:port ? > > -David > -- --- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: [Apache SSHD] Default value for max-concurrent-sessions

2013-08-01 Thread Guillaume Nodet
> What is the default value for max-concurrent-sessions? > -- --- Guillaume Nodet Red Hat, Open Source Integration Email: gno...@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/

Re: SSHD: Get current uploading file names

2013-02-27 Thread Guillaume Nodet
AM, Bob Tiernay wrote: > Is it possible to get the current set of files being uploaded via the > SshServer#getActiveSessions() method or otherwise? For reporting purposes > we require such functionality. > > Thank you in advance, > > Bob > -- ---- Guill

  1   2   3   >