How can I enable ssh for user administrator?
I use this in sshd_config:
AllowUsers administrator
After restart ssh, I tried login, I typed username + pw, but I dont got any answer. Whats wrong?
Maybe this settings are the reasons?

Match group filetransfer
    ChrootDirectory %h
    X11Forwarding no
    AllowTcpForwarding no
    ForceCommand internal-sftp
link|improve this question

25% accept rate
You can try ssh -v to show more messages. – Khaled Feb 6 '11 at 15:04
feedback

1 Answer

up vote 0 down vote accepted

I`m using this sshd_config to allow root and Users in sshlogin, to login via ssh. Users in group netlogin are chrooted:

# 2009-04-27
AllowGroups root netlogin sshlogin
PermitRootLogin without-password
PermitEmptyPasswords no
PubkeyAuthentication yes
UsePAM yes
ChallengeResponseAuthentication no
PasswordAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

#AcceptEnv LANG LC_*
AddressFamily inet
HostbasedAuthentication no
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_rsa_key
IgnoreRhosts yes
MaxStartups 4
KeyRegenerationInterval 3600
LoginGraceTime 60
LogLevel INFO
PrintLastLog yes
PrintMotd no
Protocol 2
Port 22
RhostsRSAAuthentication no
RSAAuthentication yes
ServerKeyBits 768
StrictModes yes
SyslogFacility AUTH
TCPKeepAlive yes
UsePrivilegeSeparation yes
X11DisplayOffset 10
X11Forwarding no

Subsystem sftp internal-sftp
Match group netlogin
    ChrootDirectory /home
    X11Forwarding no
    AllowTcpForwarding no
    ForceCommand internal-sftp
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.