in reply to SSH daemon in Perl?
Hi robs87,
I know this probably isn't the response you're looking for, but my immediate thought upon reading this thread is: My suggestion is to spend your time figuring out how to do what you want with the standard tools instead of spending your time figuring out how to write your own SSH server. It may be less "interesting" but the solution should end up being more robust.
The reason is simple: security. For example, many firewalls I've seen allow incoming connections on this port (and only this port, I assume because many people consider SSH tried and tested and secure). Can you guarantee that the server you write will be secure? Will you be able to test its security? Will you follow news of possible SSH exploits, update your server accordingly, and be able to immediately update your servers? (OpenSSH and the distros that use it can.)
Port 22 is a privileged port. If you have enough permissions on this machine to set up a service that listens on this port, wouldn't it be possible for you to set up a new user with restricted access? Then you can rely on OpenSSH's security, *NIX's user account security, etc.
Of course maybe there's something I'm missing - I don't know the reasoning behind your post here, so if you could explain the why that might help.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SSH daemon in Perl?
by robs87 (Novice) on Jun 22, 2016 at 22:41 UTC | |
by hippo (Archbishop) on Jun 22, 2016 at 22:59 UTC | |
by robs87 (Novice) on Jun 22, 2016 at 23:11 UTC | |
by soonix (Chancellor) on Jun 23, 2016 at 08:11 UTC | |
by robs87 (Novice) on Jun 23, 2016 at 10:39 UTC | |
| |
by haukex (Archbishop) on Jun 22, 2016 at 22:58 UTC | |
by robs87 (Novice) on Jun 22, 2016 at 23:07 UTC | |
by haukex (Archbishop) on Jun 23, 2016 at 19:43 UTC | |
by RonW (Parson) on Jun 23, 2016 at 21:50 UTC | |
by robs87 (Novice) on Jun 23, 2016 at 22:20 UTC |