Often I have seen ssh commands like:
ssh user1@user2@<one-ip-address>@<second-ip-address
First I thought this is to ssh through another server. But several questions and examples like How do I SSH to machine A via B in one command? gives better solutions for server through ssh.
So, my question is what kind of scenarios we have to use the above kind of ssh commands. What is the destination of the ssh command?
ssh
is concerned, everything before the last@
is just the username.user1@user2@ip1@ip2
? Notuser1@domain1@ip2
?user@domain@hostname
, which is for AD domain users, but I don't think I have ever seenuser1@ip1@user2@ip2
.