Официальный форум СВД Встраиваемые Системы
25 Апрель, 2024, 18:22:45 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.

Войти
 
 
 Сайт СВД ВС  Начало   Помощь Поиск Войти Регистрация  
Страниц: [1]   Вниз
  Печать  
Автор Тема: QProcess + ssh == no tty  (Прочитано 1458 раз)
sergei.porchev
Пользователь

Сообщений: 17


« : 13 Август, 2019, 13:12:27 »

Добрый день!

QNX 6.5.0
Qt 4.8.6

Запуск ssh через QProcess приводит к такой ошибке:

Код:
debug1: read_passphrase: can't open /dev/tty: No such device or address

Можно ли это как-то исправить?

C++:

Код:

QProcess cvs_proc;

cvs_proc.start( "/usr/bin/ssh",
QStringList()
<< "-v"
<< "-T"
<< "-o StrictHostKeyChecking=no"
<< "-o PreferredAuthentications=password"
<< "-o PubkeyAuthentication=no"
<< "login:@host");

cvs_proc.waitForStarted();

cvs_proc.waitForReadyRead();

qDebug() << cvs_proc.readAllStandardOutput() << cvs_proc.readAllStandardError();


Вывод ssh полностью:

Код:

OpenSSH_5.2 QNX_Secure_Shell-20090621, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to host [host] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2 QNX_Secure_Shell-20090621-hpn13v6
debug1: match: OpenSSH_5.2 QNX_Secure_Shell-20090621-hpn13v6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2 QNX_Secure_Shell-20090621-hpn13v6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'host' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).

Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #1 : 19 Август, 2019, 11:00:49 »

Здравствуйте!

Проверьте работу с текущей версией Qt 4.8.7 из этой темы.

Запуск ssh из командной строки отрабатывает корректно?
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  

Powered by MySQL Powered by PHP © 2002-2024 СВД Встраиваемые Системы.
При использовании материалов сайта ссылка на forum.kpda.ru обязательна.

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines | © Aiwan. Kolobok smiles | Sitemap
Valid XHTML 1.0! Valid CSS!
Сайт СВД ВС

В последний раз google посещал эту страницу 29 Март, 2024, 02:18:38