Unix administration - Custom sshd

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2007 > Custom sshd





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Custom sshd
Bo Yang

2007-10-30, 7:32 am

Hi
I want to use my authentication mechanism in my sshd. As well,
I do not want to run a shell after user succeed logining. Another
applicatoin will be run after user pass the validation. Could you please
tell me how can I achieve this? Thanks very much!

Regards!
Bo
Dave Hinz

2007-10-30, 7:32 am

On Tue, 30 Oct 2007 17:21:14 +0800, Bo Yang <struggleyb@gmail.com> wrote:
> Hi
> I want to use my authentication mechanism in my sshd. As well,
> I do not want to run a shell after user succeed logining. Another
> applicatoin will be run after user pass the validation. Could you please
> tell me how can I achieve this? Thanks very much!


ssh user@remotehost commandtorun

andrea

2007-10-30, 1:25 pm

On 30 Ott, 13:25, Dave Hinz <DaveH...@gmail.com> wrote:
> On Tue, 30 Oct 2007 17:21:14 +0800, Bo Yang <struggl...@gmail.com> wrote:
>
> ssh user@remotehost commandtorun


And you can use keys to avoid inserting password manually every time

Sylvain Robitaille

2007-10-30, 1:25 pm

andrea wrote:

>
> And you can use keys to avoid inserting password manually every time


With the "authorized_keys" (or equivalent) file configured such that
only the command you want to run can be run with the key in question.

The OP might have to read some documentation and conduct some
experiments to be sure (s)he knows how to get it to behave exactly as
required.

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Glenn Jackman

2007-10-30, 1:25 pm

At 2007-10-30 05:21AM, "Bo Yang" wrote:
> Hi
> I want to use my authentication mechanism in my sshd. As well,
> I do not want to run a shell after user succeed logining. Another
> applicatoin will be run after user pass the validation. Could you please
> tell me how can I achieve this? Thanks very much!


You could change the user's login shell to be your application: see
usermod.

--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
Robert Melson

2007-10-30, 7:22 pm

In article <fg70ug$rig$1@news.cn99.com>,
Bo Yang <struggleyb@gmail.com> writes:
> Hi
> I want to use my authentication mechanism in my sshd. As well,
> I do not want to run a shell after user succeed logining. Another
> applicatoin will be run after user pass the validation. Could you please
> tell me how can I achieve this? Thanks very much!
>
> Regards!
> Bo


You'll have a better chance of getting an answer on
comp.security.ssh

See also if you can find a copy of what's known as "The
Snail Book": "SSH, The Secure Shell", "The Definitive Guide",
by Daniel J. Barrett and Richard E. Silverman, ISBN 0-596-00011-1,
from O'Reilly. This should answer just about any SSH question
you might have.

Bob Melson

--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer

Bo Yang

2007-10-31, 1:31 am

Glenn Jackman :
> At 2007-10-30 05:21AM, "Bo Yang" wrote:
>
> You could change the user's login shell to be your application: see
> usermod.

Thank you. But I want my application to do the authenticate too. Could
you please tell me is that possible?

Regards!
Bo

Bo Yang

2007-10-31, 1:31 am

Robert Melson :
> In article <fg70ug$rig$1@news.cn99.com>,
> Bo Yang <struggleyb@gmail.com> writes:
>
> You'll have a better chance of getting an answer on
> comp.security.ssh
>
> See also if you can find a copy of what's known as "The
> Snail Book": "SSH, The Secure Shell", "The Definitive Guide",
> by Daniel J. Barrett and Richard E. Silverman, ISBN 0-596-00011-1,
> from O'Reilly. This should answer just about any SSH question
> you might have.


Thanks, I will post this message there to try to search some answers.

Regards!
Bo
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com