command="/path/to/rhodecode_ssh [username]",no-port-forwarding,no-X11-forwarding,no-agent-forwarding
#!/path/to/python/exe/that/runs/rhodecode
# -*- coding: utf-8 -*-
import logging
from paste.deploy import appconfig
from rhodecode.config.environment import load_environment
from rhodecode.lib.ssh import SecureShell
from rhodecode.model import init_model
from sqlalchemy import engine_from_config
if __name__ == "__main__":
# Only log critical errors
logging.basicConfig(level=logging.CRITICAL,
format="%(asctime)s %(levelname)-5.5s %(message)s")
# Load the environment for RhodeCode so we can utilize it's database
conf = appconfig('config:/path/to/production.ini')
config = load_environment(conf.global_conf, conf.local_conf)
engine = engine_from_config(conf, 'sqlalchemy.db1.')
init_model(engine)
shell = SecureShell(config)
shell.serve()
--
You received this message because you are subscribed to the Google Groups "rhodecode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhodecode+...@googlegroups.com.
To post to this group, send email to rhod...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Just FYI there's another person working on ssh wrapper for rhodecode I'll update this topic when i have more info.
--
You received this message because you are subscribed to a topic in the Google Groups "rhodecode" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rhodecode/9-5ia1Q8yD4/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to rhodecode+...@googlegroups.com.
--