Nesta página

Criar conexões SSH com dispositivos VxWorks

Para executar um servidor SSH no dispositivo VxWorks, é necessário configurá-lo, conforme descrito nas seções a seguir.

Observação: habilite o plug-in do VxWorks para utilizá-lo.

Configure a compilação do código-fonte do VxWorks

Defina as seguintes chaves na Compilação de Código-fonte do VxWorks (VSB):

"USER_MANAGEMENT"
"USER_MANAGEMENT_USER_PRIVILEGES"

Configure o kernel do VxWorks

Adicione as seguintes inclusões à configuração do kernel do VxWorks (VIP):

"INCLUDE_IPSSH_CLIENT_CMD"
"INCLUDE_SHELL_SECURITY"
"INCLUDE_USER_DATABASE"
"INCLUDE_USER_IDENTIFICATION"
"INCLUDE_USER_PRIVILEGES"
"INCLUDE_USER_MGT_SHELL_CMD"
"INCLUDE_SEC_KEY_STORE_CMD"
"INCLUDE_SHELL"
"INCLUDE_SSH"
"INCLUDE_IPD_CMD"

Crie um script de inicialização

No script de inicialização, configure o gerenciamento de usuários e a inicialização do servidor SSH.

Um exemplo de script de inicialização:

cp "/romfs/ssh/keys/WindRiver.pk2","/ram"
cmd keyStore import default_rsa /romfs/ssh/keys/default_rsa.pem
cmd keyStore import default_dsa /romfs/ssh/keys/default_dsa.pem
cmd ipd start ipssh
udbReset
userAdd "WindRiver","vxTarget"

Teste a conexão

Para testar a conexão a partir do terminal, especifique os algoritmos de chave para ela (já que o VxWorks usa chaves antigas):

ssh -oHostKeyAlgorithms=+ssh-rsa -lWindRiver 192.168.0.3

Veja também Ativar e desativar plug-ins, Como fazer: VxWorks, Depuração, Desenvolvimento para VxWorks e Qt para VxWorks.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.