How to handle Ctrl+C and other Sigint

2017-03-02 Thread waseem.farooqui
Hi, I am new in Apache mina and have just follow the embedded server tutorial but I have some problem in it. * When I typed Ctrl+C from the client nix based terminal It prints some unicodes but in real server its not print on clients terminal How Can I handle this in my sshd server or which

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread waseem.farooqui
How do you do that ? I am connecting multiple client with the servers i-e I open 2 terminals and ssh the server with both of them. I open a new thread at every new connection like this public static void main(String[] args) { new Thread(new SshDaemon()).start(); }

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread waseem.farooqui
/How do you do that ? / I am connecting multiple client with the servers i-e I open 2 terminals and ssh the server with both of them. I open a new thread at every new connection like this public static void main(String[] args) { new Thread(new SshDaemon()).start(); }

How to Handle Ctrl+C on any SigInts in SSHd.

2017-03-02 Thread waseem.farooqui
Hi, I am new in Apache mina and have just follow the embedded server tutorial but I have some problem in it. * When I typed Ctrl+C from the client nix based terminal It prints some unicodes but in real server its not print on clients terminal How Can I handle this in my sshd server or which

Re: How to handle Ctrl+C and other Sigint

2017-03-02 Thread Guillaume Nodet
You need to configure the terminal correctly on the client and server side, you also need to process the signals correctly. For example, Ctrl+C is just the character 0x03 in the input stream. Wether you should terminate or not is your decision. Del, backspace and tab are also characters in the

[jira] [Updated] (SSHD-731) Vanorability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Boris Fridland (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Boris Fridland updated SSHD-731: Description: After implementing sftp access control by overriding

[jira] [Created] (SSHD-731) Vanorability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Boris Fridland (JIRA)
Boris Fridland created SSHD-731: --- Summary: Vanorability in SimpleAccessControlSftpEventListener implementation Key: SSHD-731 URL: https://issues.apache.org/jira/browse/SSHD-731 Project: MINA SSHD

MIA for a while...

2017-03-02 Thread Emmanuel Lécharny
Hi ! just for you to know, I may be MIA for a while, or at least way less responsive : My wife just gave birth to our wonderful daughter today, and I'm afraid it's going to be our priority number one in the next few weeks :-) Thanks ! -- Emmanuel Lecharny Symas.com directory.apache.org

Re: How to handle Ctrl+C and other Sigint

2017-03-02 Thread elijah baley
The answer is very long and complex however here are a few pointers - See Signal(s) and how to register for them - Do some research into reading from the peer input stream and detecting key combinations and/or special characters. From: waseem.farooqui

[jira] [Updated] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-731: Description: After implementing sftp access control by overriding

[jira] [Updated] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-731: Priority: Minor (was: Major) > Vulnerability in SimpleAccessControlSftpEventListener implementation

[jira] [Updated] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-731: Environment: (was: org.apache.sshd sshd-core

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-02 Thread elijah baley
Seems like the wrong way - the SSHDServer is a singleton and should be created only once (!). Please read the documentation on the MINA side about how to set up a server and how to configure command/shell factories. From: waseem.farooqui

[jira] [Work started] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on SSHD-731 started by Goldstein Lyor. --- > Vulnerability in SimpleAccessControlSftpEventListener implementation >

[jira] [Assigned] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor reassigned SSHD-731: --- Assignee: Goldstein Lyor > Vulnerability in SimpleAccessControlSftpEventListener

[jira] [Updated] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-731: Affects Version/s: 1.3.0 > Vulnerability in SimpleAccessControlSftpEventListener implementation >

Re: MIA for a while...

2017-03-02 Thread Guillaume Nodet
Congrats to you and your wife ! Enjoy ! 2017-03-02 15:15 GMT+01:00 Emmanuel Lécharny : > Hi ! > > > just for you to know, I may be MIA for a while, or at least way less > responsive : My wife just gave birth to our wonderful daughter today, > and I'm afraid it's going to be

[jira] [Resolved] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor resolved SSHD-731. - Resolution: Fixed Fix Version/s: 1.5.0 > Vulnerability in

[jira] [Commented] (SSHD-731) Vulnerability in SimpleAccessControlSftpEventListener implementation

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15892724#comment-15892724 ] Goldstein Lyor commented on SSHD-731: - You are right about the behavior - I am working on a fix,

[jira] [Updated] (SSHD-730) Relative symbolic links with .. is not resolved properly by sftp readLink

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Goldstein Lyor updated SSHD-730: Priority: Minor (was: Major) > Relative symbolic links with .. is not resolved properly by sftp

[jira] [Commented] (SSHD-730) Relative symbolic links with .. is not resolved properly by sftp readLink

2017-03-02 Thread Goldstein Lyor (JIRA)
[ https://issues.apache.org/jira/browse/SSHD-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15893717#comment-15893717 ] Goldstein Lyor commented on SSHD-730: - Please clarify the problem some more - specifically what is meant

Re: MIA for a while...

2017-03-02 Thread Maxim Solodovnik
Congratulations :) This is most important duty :) WBR, Maxim (from mobile, sorry for the typos) On Mar 2, 2017 21:15, "Emmanuel Lécharny" wrote: > Hi ! > > > just for you to know, I may be MIA for a while, or at least way less > responsive : My wife just gave birth to our

Re: How to handle Ctrl+C and other Sigint

2017-03-02 Thread waseem.farooqui
Yes I research on reading from the input stream IN case of Ctrl+c terminal sends 3 as a byte data and same in case of others. But should I handle all the special inputs myself or is there any class ? I have search a lot for its example but not find any. -- View this message in context:

Re: How to handle Ctrl+C and other Sigint

2017-03-02 Thread Guillaume Nodet
SSHd won't do anything about it, it simply focuses on transporting the data and conveying all the needed informations. It's the responsibility of the shell to implement things correctly, so the only thing I can do (and did already) is to point you to a java shell which is doing this. If you write

[RESULT] [VOTE] Release Apache Mina SSHD 1.4.0

2017-03-02 Thread Guillaume Nodet
Closing this vote with 3 binding +1s. I'll publish the artifacts asap. 2017-02-28 18:13 GMT+01:00 Lyor Goldstein : > +1 > > Proper disclosure: I am the one who made most of the changes and initiated > the vote (through Guillaume). > --