S
S
Spheniscus2018-10-31 09:18:41
linux
Spheniscus, 2018-10-31 09:18:41

How to implement connection redirection depending on the user?

Good afternoon.
Is it possible to implement (and if so, how) the following scheme?
There is one entry point to the server via ssh (let's say the address is 192.168.0.1).
If the server is logged in under the login vasya, then we connect it to the server 192.168.0.2
If the server is logged in under the login petya, then we connect it to the server 192.168.0.3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2018-10-31
@Spheniscus

echo "ssh 192.168.0.2" >> /home/vasya/.bashrc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question