user for ssh clone/pull

TK Soh teekaysoh at yahoo.com
Thu Dec 1 05:28:54 UTC 2005


--- Thomas Arendsen Hein <thomas at intevation.de> wrote:
> * TK Soh <teekaysoh at yahoo.com> [20051201 03:36]:
> > --- Thomas Arendsen Hein <thomas at intevation.de> wrote:
> > > * TK Soh <teekaysoh at yahoo.com> [20051130 01:51]:
> > > > How can I setup a user account to allow incoming ssh clone/pull, but
> > > disable
> > > > the user for loggin in through telnet, etc?
> > > 
> > > Look at the comments in contrib/hg-ssh
> > > 
> > > If there is a forced command in authorized_keys, logging in via this
> > > ssh key automatically calls this command, and nothing else is
> > > allowed.
> > 
> > Just tried that, but looked like it still allow telnet. If I set the
> login
> > shell to /sbin/nologin, then hg-ssh failed to work.
> 
> The users only should use ssh keys, don't tell them the password
> (or better: disable the password)

That's right! Thanks :)



		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs


More information about the Mercurial mailing list