Disallow users to login via ssh?

From: Sebastian Schack (sschack@ki.tng.de)
Date: 04/23/03


From: Sebastian Schack <sschack@ki.tng.de>
Date: Wed, 23 Apr 2003 21:54:01 +0200

Hi again.

After not being able to manage to chroot specific users into their home
dirs I decided to want to not let specific users connect to my computer
via ssh.

I had a look at /etc/ssh/sshd.conf but didn't find anything where I
could add UIDs or Usernames that should not be able to login via SSH.

Can this be done? If 'yes': how? :)

Thanks in advance,

Sebastian

-- 
"I'm starting with the man in the mirror, I'm asking him to change his
ways, And no message could have been any clearer, If you wanna make the
world a better place, Take a look at yourself, and then make a change!"
- Michael Jackson


Relevant Pages

  • Re: Need advice on setting of an SSH server for untrusted users
    ... > I've just set up an ssh server so that my customers can download code ... I've set up ssh so that it requires rsa authentication. ... There is a patch for openssh that will cause it to do a chroot like ... The issue with a chroot jail for ssh is that you have to hand-roll the ...
    (comp.os.linux.security)
  • Re: Problems with Sudo
    ... you can't sudo to root. ... SSH is generally allowed, all limitations should still apply including ... secure, the internet is a very dangerous place. ... allowing someone to break out of a chroot jail by simply logging back ...
    (Ubuntu)
  • Re: sftponly
    ... provided the server is secure or what other services/interfaces you ... > I agree - chrooting is a good practice, and I wouldn't set SSH up without ... > you pair them with a chroot jail. ... Of course they can do more with SSH access, ...
    (SSH)
  • Re: Chroot environment for ssh
    ... > would like to use SSH for the connections, as opposed to FTP, but I ... > users to be able to log into an interactive shell and I ... > want them to 'escape' out of their home directories. ... directives to chroot the groupand/or userthat are to have ...
    (FreeBSD-Security)
  • sftp with chroot
    ... chroot, so that users can be jailed to their home folder only. ... But sftp does not restrict to ... I tried to patch the Openssh 4.3p2 source code from openssh.org as given ... No output written to ssh ...
    (SunManagers)