Roger Maclean
|
RE: How to access target with ssh
|
Roger Maclean
02/16/2016 8:54 AM
post115747
|
RE: How to access target with ssh
I assume you have sshd running on the target and that you are able to connect to it manually. If so the problem is
quite likely that the environment is wrong for any command Qt Creator tries to use. To fix it you'll have to ensure
that sshd's configuration includes:
PermitUserEnvironment yes
and then configure /root/.ssh/environment to have the appropriate environment for Qt Creator (most likely missing things
like PATH and LD_LIBRARY_PATH).
When I ran into this a year or so ago I connected to the target using ssh and ran:
env >/root/.ssh/environment
________________________________________
From: Wenbin Fu [community-noreply@qnx.com]
Sent: Tuesday, February 16, 2016 3:48 AM
To: technology-networking
Subject: How to access target with ssh
we are using qt-creator to write application based on QT, but qt-creator failed to connect to target via ssh.
to support ssh to access target, what configuration should be done in target?
thanks
- wenbin
_______________________________________________
Technology
http://community.qnx.com/sf/go/post115741
To cancel your subscription to this discussion, please e-mail technology-networking-unsubscribe@community.qnx.com
|
|
|
Wenbin Fu
|
Re: How to access target with ssh
|
Wenbin Fu
02/16/2016 7:40 PM
post115751
|
Re: How to access target with ssh
sorry, I did not get sshd running successfully in target actually. sshd try to get key from /etc/ssh when i run sshd,
but as you know, IFS image is read-only file system, I was not allow to run ssh-keygen to generate key in /etc/ssh by
running ssh-keygen.
do you have any idea on it?
thanks
- wenbin
|
|
|