mina-sshd icon indicating copy to clipboard operation
mina-sshd copied to clipboard

Can I design a ssh server with sshd?

Open ZhouMM92 opened this issue 1 year ago • 4 comments

Now,I want to design a ssh server which can be connected by XShell or MobalXterm. And when I use XShell connect to this server, the server will verify the username and password from the XShell, when username and password is correct, then the connection can be created. After connected, the ssh server can output text to the Xshell, and also can receive input from the XShell.

So, can I implement this requirement with mina-sshd?

ZhouMM92 avatar May 07 '24 06:05 ZhouMM92

Compared to e.g. an OpenSSH server you will lack certain functionalities like privilege separation or integration with the OS user management (PAM or whatever on Linux).

For general shell-level access I would not use Apache MINA SSHD.

But there are valid use cases for using Apache MINA SSHD to provide an SSH server component in an application. For instance, Gerrit uses it for git access over SSH, and for providing a restricted set of maintenance commands over SSH.

tomaswolf avatar May 07 '24 08:05 tomaswolf

Compared to e.g. an OpenSSH server you will lack certain functionalities like privilege separation or integration with the OS user management (PAM or whatever on Linux).

For general shell-level access I would not use Apache MINA SSHD.

But there are valid use cases for using Apache MINA SSHD to provide an SSH server component in an application. For instance, Gerrit uses it for git access over SSH, and for providing a restricted set of maintenance commands over SSH.

Thank you for the answer. But I indeed need to design a simple ssh server to interact with xshell . So, are there some simple examples that I can refer to?

ZhouMM92 avatar May 07 '24 08:05 ZhouMM92

Look in the documentation or in the tests.

tomaswolf avatar May 07 '24 09:05 tomaswolf

Look in the documentation or in the tests.

Thank you very much. And I want to know which version is more stable and better that I can use.

ZhouMM92 avatar May 08 '24 07:05 ZhouMM92

Use the latest.

tomaswolf avatar May 27 '24 20:05 tomaswolf