Tocotac
23.02.03, 13:55
ich habe folgendes problem: ich kann mich nur per ssh als root anmelden.
als user root: einen user "test" erstellt ->
als user test: ssh-keygen -t dsa -b 1024
als user test: cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
als user test: ssh -v localhost -l test -i ~/.ssh/id_dsa
[...]
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try pubkey: /home/test/.ssh/id_dsa
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: no more auth methods to try
Permission denied (publickey,keyboard-interactive).
[...]
die sshd_config sieht wiefolgt aus:
Port 22
Protocol 2
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile ~/.ssh/authorized_keys
PasswordAuthentication no
Subsystem sftp /usr/lib/ssh/sftp-server
vieleicht kann mir jemand sagen, warum sich keine user anmelden können...
danke
als user root: einen user "test" erstellt ->
als user test: ssh-keygen -t dsa -b 1024
als user test: cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
als user test: ssh -v localhost -l test -i ~/.ssh/id_dsa
[...]
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try pubkey: /home/test/.ssh/id_dsa
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: no more auth methods to try
Permission denied (publickey,keyboard-interactive).
[...]
die sshd_config sieht wiefolgt aus:
Port 22
Protocol 2
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile ~/.ssh/authorized_keys
PasswordAuthentication no
Subsystem sftp /usr/lib/ssh/sftp-server
vieleicht kann mir jemand sagen, warum sich keine user anmelden können...
danke