|
NAMEcbsd jlogin —
Login into local or remote jail as root user.
SYNOPSIS
DESCRIPTIONThecbsd jlogin command performs a login to the jail as
root user. If the jail isn't present on the local node, but rather on one of
the remote nodes, cbsd jlogin will attempt to login
over ssh.
The options are as follows:
If no jail is specified, a list of all known online jails in the farm is displayed (provided remote hosts were added). If you remotely connect to a jail and node which have tmux installed, tmux will be launched at login and the session is given the name taken from the server's nodename (taken from jlogin). Additional sessions will automatically join the tmux session through a tmux-attach. When the last connection is closed the tmux session ends (you may detach via Ctrl + b , d to keep it running). Should you prefer NOT to use tmux on jlogin, copy ${workdir}/defaults/jlogin.conf to ${workdir}/etc/jlogin.conf and set tmux_login to 0. In order to deactivate the "try to login?" question when logging into remote nodes, set always_rlogin to 1 in your ${workdir}/etc/jlogin.conf. ENVIRONMENTBy default, CBSD displays text in color (using escape sequences ANSII). If for some reason the color is unpleasant, or you want to use output from CBSD utilities in your scripts, you can disable the color through the environment variable NOCOLOR=1. For example:% env NOCOLOR=1 FILES
EXIT STATUSThecbsd jlogin utility exits 0 on success,
and >0 if an error occurs.
EXAMPLES
DIAGNOSTICSTo enable debugging via sh xtrace and trace all operations, use --debug argument after the CBSD command, for example:% env NOCOLOR=1 SEE ALSOcbsd-jconfig(8) cbsd-jregister(8) cbsd-jset(8)AUTHORSOleg Ginzburg <olevole@olevole.ru>
Visit the GSP FreeBSD Man Page Interface. |