thachlp opened a new issue, #348:
URL: https://github.com/apache/mina-sshd/issues/348

   ### Version
   
   2.9.2
   
   ### Bug description
   
   I try to create a simple SSH Server
   ```
   sshServer.setCommandFactory(new ProcessShellCommandFactory());
   sshServer.setShellFactory(new ProcessShellFactory("/bin/sh", "-i", "-l"));
   ```
   But when I try to connect to server by
   ```
   ssh localhost -p <port> -o UserKnownHostsFile=/dev/null 
   ```
   I received a exception:
   ```
   
exceptionCaught(ServerSessionImpl[thachle@/[0:0:0:0:0:0:0:1]:52686])[state=Opened]
 IOException: Cannot run program "-i": error=2, No such file or directory
   ```
   
   
   
   ### Actual behavior
   
   Connection from client was closed:
   ```
   Connection to localhost closed by remote host.
   Connection to localhost closed.
   ```
   
   ### Expected behavior
   
   We can access to SSH server with no error
   
   ### Relevant log output
   
   _No response_
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to