-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session.setEnvVar throws ConnectionError #128
Comments
I'm running into this issue as well. Currently in the thick of a deadline, but I'll try to help debug/fix this when I get some downtime here. |
I too am running into this issue. Any idea of a temporary work-around? I'm connecting to a CentOS 6.6 running OpenSSH 5.3p1 if this helps. |
Which version of sshj? Op do 5 nov. 2015 20:56 schreef James Poulsen notifications@github.com:
|
I meant to say that too, sorry. It's version SSHJ 0.14.0. However, I'm starting to think it's not a bug in SSHJ as I can't use Putty to set environmental variables on initial connection either. I'm going to look into this further. |
Anyone found the solution for this? |
As far as I know the server should allow setting environment variables. For OpenSSH it should be set in /etc/sshd_config. |
@hierynomus I am facing this issue in CentOs 7 with SSHJ version 0.31.0. Any alternative solution for this issue to set envVars while executing the command?
|
I'm testing to connect to localhost.
I manage to connect and execute a command without
session.setEnvVar
.With
session.setEnvVar
enabled it throws:The code is as follows:
Version: net.schmizz:sshj:0.9.0
Server: SSH-2.0-OpenSSH_6.2
The text was updated successfully, but these errors were encountered: