Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


SSH variables not getting updated in OpenVZ
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

SSH variables not getting updated in OpenVZ

IndicIndic Member
edited August 2011 in Help

On connecting to a ssh server some environment variables should get set for the session.

Here is an example set -

SSH_CLIENT=192.168.25.198 4671 22
SSH_TTY=/dev/pts/11
SSH_AUTH_SOCK=/tmp/ssh-zIn16635/agent.16635
SSH_CONNECTION=192.168.25.198 4671 192.168.25.3 22

I am not getting this on an openvz based VPS. This problem does not exist on a full-virtualized VPS with same Linux distro.

Do you have the same experience? Any idea?

ref: http://samrowe.com/wordpress/ssh-agent-and-gnu-screen/

Comments

  • What are you running on the vps for ssh? Is it the one that comes with the distro or did you replace it with dropbear?

  • You got it right!

    I have executed the LEB script sometime back. Going to change the ssh server now.

    Thanks a lot for the help.

  • Not a problem.

    I gather dropbear doesn't allow for environment variables? that's what I was wondering.

  • According to Dropbear's CHANGELOG,

    0.53 - Thurs 24 February 2011
    ...
    Set SSH_TTY and SSH_CONNECTION environment variables in the server

    You'll have to wait until Debian wheezy or Ubuntu 11.10 to get Dropbear 0.53. Sorry not too sure about other distributions.

  • drmikedrmike Member
    edited August 2011

    The dropbear version that gets installed with LES is 0.52. (At least on mine.) That's probably the issue then.

  • Thanks for digging all these out. I was using Dropbear 0.52-5 on Squeeze.

Sign In or Register to comment.