SSH enabling in RhodeCode Community 4.27.1

Hello.

I’m trying to configure ssh repo access in my RhodeCode 4.27.1 Community. I’ve done as it is said in docs. The result is I can configure my ssh keys in profile and I can clone repo without password entrance. Very good.

But now I lost the ability to connect to machine where RhodeCode is running via SSH. I get excepction as if my ordinary ssh connection is also wrapped in ssh_wrapper:

> ssh -p 9022 rcdev@192.168.1.191
PTY allocation request failed on channel 0
Traceback (most recent call last):
File "/opt/rhodecode/store/8mliv4kj7db3qz4jmy3nyca7v7r6kav0-python2.7-rhodecode-enterprise-ce-4.27.1/bin/.rc-ssh-wrapper-wrapped", line 12, in <module>
sys.exit(main())
File "/opt/rhodecode/store/yww9rmp41h1i5kibgh1ag3kn8ixn684m-python2.7-click-7.0/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/opt/rhodecode/store/yww9rmp41h1i5kibgh1ag3kn8ixn684m-python2.7-click-7.0/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/opt/rhodecode/store/yww9rmp41h1i5kibgh1ag3kn8ixn684m-python2.7-click-7.0/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/rhodecode/store/yww9rmp41h1i5kibgh1ag3kn8ixn684m-python2.7-click-7.0/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/opt/rhodecode/store/8mliv4kj7db3qz4jmy3nyca7v7r6kav0-python2.7-rhodecode-enterprise-ce-4.27.1/lib/python2.7/site-packages/rhodecode/apps/ssh_support/lib/ssh_wrapper.py", line 66, in main
'Unable to fetch SSH_ORIGINAL_COMMAND from environment.'
ValueError: Unable to fetch SSH_ORIGINAL_COMMAND from environment.Please make sure this is set and available during execution of this script.
2022-10-19 12:10:59.789 INFO  [rhodecode.lib.rc_cache.cache_key_meta] Clearing 0 cache keys
Connection to 192.168.1.191 closed.

How to configure ssh access to repos and still have an ability to connect into ssh shell to RhodeCode machine? I also want to be sure that anybody who added ssh key in their RhodeCode profile can’t access the entire machine.

Probably I sgould somehow have two instances of sshd and one will be for RhodeCode SSL access, other for loggin into system with ssh? But I have no idea how to configure that.