-
Custom sshd
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
-
Re: Custom sshd
On Tue, 30 Oct 2007 17:21:14 +0800, Bo Yang <struggleyb@gmail.com> wrote:[color=blue]
> 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![/color]
ssh user@remotehost commandtorun
-
Re: Custom sshd
On 30 Ott, 13:25, Dave Hinz <DaveH...@gmail.com> wrote:[color=blue]
> On Tue, 30 Oct 2007 17:21:14 +0800, Bo Yang <struggl...@gmail.com> wrote:[color=green]
> > 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![/color]
>
> ssh user@remotehost commandtorun[/color]
And you can use keys to avoid inserting password manually every time :)
-
Re: Custom sshd
andrea wrote:
[color=blue][color=green][color=darkred]
>>> I do not want to run a shell after user succeed logining. Another
>>> applicatoin will be run after user pass the validation. ...[/color]
>> ssh user@remotehost commandtorun[/color]
>
> And you can use keys to avoid inserting password manually every time :)[/color]
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 [email]syl@alcor.concordia.ca[/email]
Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
-
Re: Custom sshd
At 2007-10-30 05:21AM, "Bo Yang" wrote:[color=blue]
> 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![/color]
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
-
Re: Custom sshd
In article <fg70ug$rig$1@news.cn99.com>,
Bo Yang <struggleyb@gmail.com> writes:[color=blue]
> 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[/color]
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
-
Re: Custom sshd
Glenn Jackman :[color=blue]
> At 2007-10-30 05:21AM, "Bo Yang" wrote:[color=green]
>> 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![/color]
>
> You could change the user's login shell to be your application: see
> usermod.[/color]
Thank you. But I want my application to do the authenticate too. Could
you please tell me is that possible?
Regards!
Bo
-
Re: Custom sshd
Robert Melson :[color=blue]
> In article <fg70ug$rig$1@news.cn99.com>,
> Bo Yang <struggleyb@gmail.com> writes:[color=green]
>> 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[/color]
>
> 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.[/color]
Thanks, I will post this message there to try to search some answers.
Regards!
Bo