N
N
nepster-web2014-02-15 20:11:38
Debian
nepster-web, 2014-02-15 20:11:38

How to implement authorization forwarding in openvz container via ssh?

The task is to forward authorization from the main server to the openVZ container.
I found this command
ssh -A [email protected] ssh [email protected]
. I have a container with the address: 192.168.1.123
Task:
If a user logs in via ssh to the main server, for example, under the login checkers, we must transfer him to the container 192.168.1.123 I
execute the command:
ssh -A [email protected] ssh [email protected]

ssh: connect to host 8.8.8.8 port 22: Connection timed out

Perhaps I misunderstood the dock and instead of 8.8.8.8 you need to register the ip of your server
ssh -A [email protected][ip сервера] ssh [email protected]
[email protected]'s password:

Asks for a password, which password is not yet clear, since the virtual machine does not have a password, and the root password does not match.
I also used this option:
How to attach a user to an openVZ container?
But at the same time, WinSCP crashes (that is, it is not possible to log in).
Can you please tell me how to reset the authorization?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-02-15
@nepster-web

Forward the port and go like this:
ssh [email protected]_ip_server -p 222
In the rinetd config write the following:
allow *.*.*.*
external_ip_server 222 ip_virtualka 22

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question