The remote agent could not be installed

20 days ago by
I'm trying to configure a remote project between a client (mac sierra) and a remote server (linux 16.04). I have ssh key connection between the system that works from the terminal.

In the process of installing the remote agent I get:

The remote agent could not be installed on host id lxhome2. Failed to create /usr/lib/wingide6/wingdebugpw. Output received:

ls: cannot access '/usr/lib/wingide6/wingdebugpw': no such file or directory,

Please advise,


Community: Wing Python IDE

1 Answer

20 days ago by
You do not want to use /usr/lib/wingide6 as WINGHOME.  Instead, use some other directory that the user on the remote host can write to.  In this case, the problem is that Wing is trying to write additional files to WINGHOME and fails to do that. 

The directory you choose for the remote WINGHOME should not exist, or should be empty, but the parent directory does need to exist.  For example, if /home/myuser is the home directory of the user you are sshing in as, /home/myuser/winghome would work fine.

We'll try to clarify that WINGHOME should no longer be a Wing install, or more likely will just automate this.  Earlier in the design of this system is was OK to use the Wing install directory on the remote host but it no longer works. 

Thanks for pointing out that potential source of confusion!
Thanks for the quick response,

I have changed the winghome folder as suggested. It seems like the agent installation passed (I can see the new folder and files). However, I get that:

Connecting to host id lxhome failed. Please check your configuration. Output received:
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/avishai/.ssh/config
debug1: /Users/avishai/.ssh/config line 6: Applying options for
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to [] port 22.
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/avishai/.ssh/lxhome type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/avishai/.ssh/lxhome-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to as 'avishai'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm:
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: MAC: <implicit> compression: none
debug1: kex: client->server cipher: MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:tvv3RyTMoEewtsERp91k67rwsAhWJi3tSQTrVk3+NJY
debug1: Host '' is known and matches the ECDSA host key.
debug1: Found key in /Users/avishai/.ssh/known_hosts:4
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/avishai/.ssh/lxhome
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to ([]:22).
debug1: Remote connections from LOCALHOST:56531 forwarded to local address
debug1: channel 0: new [client-session]
debug1: Requesting
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype want_reply 0
SSH client exited errno=126

My client is Mac, sierra, the /.ssh/config:

AddKeysToAgent yes
UseKeychain yes
IdentityFile /Users/avishai/.ssh/lxhome

Please advise,



written 19 days ago by Avishai Bartov  
Exit code 126 is the bash error code for a command that was found but couldn't be executed.  Wing is trying to run the Python you've listed in Python Executable in your remote agent.  What is that set to and can you run it manually as the same user on the remote host?
written 19 days ago by Wingware Support  
Thanks! that was the problem.

Thank again for the super fast and effective support,

written 19 days ago by Avishai Bartov  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »