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. – muru Jul 20 '20 at 10:04user1@user2@ip1@ip2
? Notuser1@domain1@ip2
? – muru Jul 20 '20 at 12:07user@domain@hostname
, which is for AD domain users, but I don't think I have ever seenuser1@ip1@user2@ip2
. – muru Jul 20 '20 at 14:39user1@ip1@user2@ip2
as you mentioned in the comment. it isuser1@user2@ip1@ip2
even inuser@domain@hostname
structure IP addresses are useless, as I think. – Vikum Dheemantha Jul 20 '20 at 14:44hostname
could be IP inuser@domain@hostname
, hence the relevance. – muru Jul 20 '20 at 14:45@
s. What was the actual command then? – muru Aug 21 '20 at 03:27