Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.