@sflyer

X2GO+Debian+SSH key — не могу авторизоваться, что не так?

Есть уже настроенный сервер с авторизацией по ssh ключу и клиентская машина с Windows 10. Нужно настроить x2go.
По ключу без проблем захожу на сервер по ssh (putty, например), но при подключении через x2go получаю странную проблему. Он спрашивает пароль от ключа 5 раз (попробовал на двух ключах: с паролем и без, результат одинаковый) и в итоге выводит ошибку:
Access denied. Authentication that can continue: publickey


В логах x2go сервера ничего нет, могу добавить debug:
Jul  3 09:19:00 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:01 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:01 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:03 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:03 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:03 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:05 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:05 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:05 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:07 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:07 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:07 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:09 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:09 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:09 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:12 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:12 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:12 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:14 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:14 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:14 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:16 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:16 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:16 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:18 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:18 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:18 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:20 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:20 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:20 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:23 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:23 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:23 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:25 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:25 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:25 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:27 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:27 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:27 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:29 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:29 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:29 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp
Jul  3 09:19:31 rdp x2gocleansessions: executing external command ,,/usr/lib/x2go/x2golistsessions_sql'' with args: rdp
Jul  3 09:19:32 rdp x2golistsessions_sql: executing external command ,,x2gopath'' with args: libexec
Jul  3 09:19:32 rdp x2golistsessions_sql: executing external command ,,/usr/lib/x2go/libx2go-server-db-sqlite3-wrapper'' with args: listsessionsroot,rdp


sshd конфиг:
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
AcceptEnv LANG LC_*
Subsystem       sftp    /usr/lib/openssh/sftp-server
PubkeyAcceptedKeyTypes=+ssh-dss


в /var/log/auth.log
Jul 3 10:26:47 rdp sshd[19747]: Received disconnect from 192.168.18.112 port 57335:11: Bye Bye [preauth]
Jul 3 10:26:47 rdp sshd[19747]: Disconnected from 192.168.18.112 port 57335 [preauth]

Что может не хватать x2go для авторизации по ключу?
  • Вопрос задан
  • 482 просмотра
Решения вопроса 1
@sflyer Автор вопроса
После 4 часов гугления и попыток нашлась проблема. Если сгенерировать ключ через puttyGEN - подключения не будет. Только из под linux делать.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы