Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I design a ssh server with sshd? #496

Closed
ZhouMM92 opened this issue May 7, 2024 · 5 comments
Closed

Can I design a ssh server with sshd? #496

ZhouMM92 opened this issue May 7, 2024 · 5 comments

Comments

@ZhouMM92
Copy link

ZhouMM92 commented May 7, 2024

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?

@tomaswolf
Copy link
Member

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.

@ZhouMM92
Copy link
Author

ZhouMM92 commented May 7, 2024

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?

@tomaswolf
Copy link
Member

Look in the documentation or in the tests.

@ZhouMM92
Copy link
Author

ZhouMM92 commented May 8, 2024

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.

@tomaswolf
Copy link
Member

Use the latest.

@tomaswolf tomaswolf closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants