I am trying to log into machine A from machine B via SSH. Both machines are running Ubuntu, and both machines are on the same LAN. My method is to log into machine B via SSH from outside the LAN, then log into machine A from machine B.
Me --||--> SSH B --> SSH A
Where the || signifies the entrance to the LAN
I can't log in directly to machine A because my router is only setup to forward to machine B. I frequently SSH into machine A from within my LAN on other Windows computers - I do this all the time.
I am able to log into machine B via SSH successfully from OUTSIDE the LAN. I am then trying to SSH from the shell of machine B to machine A, but it is not working. This is what I do from machine B:
However, when I do this command it brings me to a login prompt that is for a completely different computer, outside the LAN, that I also manage. So, something like:
password for login_name@IP.of.machine.outside.the.LAN:
How on earth is this happening?!