OpenVZ Forum


Home » General » Support » vzctl enter CT via SSH (wrapper?)
vzctl enter CT via SSH (wrapper?) [message #37236] Thu, 27 August 2009 22:22 Go to next message
sej7278 is currently offline  sej7278
Messages: 1
Registered: August 2009
Junior Member
My VPS provider allows me to SSH into the host node to get to my VE, and I was just wondering how that is done so I can duplicate the functionality on my local install of OpenVZ (as its handy when you've locked yourself out of your VE by flushing iptables or stopping sshd or something!)

Basically I SSH into the host node with a username and password and it seems to perform a "vzctl enter <veid>" as I get the prompt:

entered into CT 102
root@vps:/# 


Like you do with "vzctl enter 102".

Is this a built-in function of OpenVZ, or is it some sort of hacky wrapper such as replacing the shell of my HN user with "sudo vzctl enter 102" or something?

[Updated on: Thu, 27 August 2009 22:30]

Report message to a moderator

Re: vzctl enter CT via SSH (wrapper?) [message #37249 is a reply to message #37236] Fri, 28 August 2009 16:08 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

seem its a login - wrapper with sudo, op or other tools execute cmd with root priviliges, executed on login via ssh

for a bashed solution see man bash, section "INVOCATION"
bash_profile, bash_login, .profile ... etc.

Bye,
Thorsten
Previous Topic: Multiple /24's on a host and containers
Next Topic: Proxmox. vps not pinging.
Goto Forum:
  


Current Time: Mon Aug 12 01:17:12 GMT 2024

Total time taken to generate the page: 0.02824 seconds