Custom sshd
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Custom sshd




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Custom sshd  
Bo Yang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-30-07 12:32 PM

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





[ Post a follow-up to this message ]



    Re: Custom sshd  
Dave Hinz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-30-07 12:32 PM

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






[ Post a follow-up to this message ]



    Re: Custom sshd  
andrea


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-30-07 06: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 






[ Post a follow-up to this message ]



    Re: Custom sshd  
Sylvain Robitaille


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-30-07 06: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
----------------------------------------------------------------------





[ Post a follow-up to this message ]



    Re: Custom sshd  
Glenn Jackman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-30-07 06: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





[ Post a follow-up to this message ]



    Re: Custom sshd  
Robert Melson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-31-07 12:22 AM

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






[ Post a follow-up to this message ]



    Re: Custom sshd  
Bo Yang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-31-07 06: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






[ Post a follow-up to this message ]



    Re: Custom sshd  
Bo Yang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-31-07 06: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:31 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register