D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Back to front SSH connection?

 

https://tmate.io/ ?

You need something where there's a central point of access unless you have a fixed IP and port forwarding set up ...

HOWEVER: If he SSH's to you, forward a port back through the SSH connection (tunnelling) to his end, and you should be able to SSH into His computer, with an appropriate username and password (he can create this His end, hopefully). This usually looks like ssh [-L|-R] localhost:localport which maps to HisIP:SSH (plenty of docs on Forward and Remote port *TUNNELLING* in the man pages/etc.

https://www.ssh.com/ssh/tunneling/example

Should be much simpler than doing reverse-SSH nonsense ...

Cheers,
Michael.

On 26/03/19 18:15, Grant Phillips-Sewell wrote:
Hi all,

My brain is complete mush at the moment with the impending house move, and my Google Fu is being affected accordingly.

A friend in Scotland has just installed Linux Mint on his laptop. What I would like to do, if possible (I'm sure it is, and I'm sure I have a vague recollection of doing precisely this many years ago) is for him to run a command on his machine that establishes a connection to my machine but allows me to run commands on his machine.

To my mind this would be a "reverse SSH connection" as his would be the "server" (in as much as I would be running commands on it remotely) but his would also be the one initiating the connection (like a "client" would normally) so he doesn't have to mess around with port forwarding nonsense.

I'm happy to (temporarily) set up pretty forwarding on my end to accept his incoming connection, but importantly once he has established a connection I want to have shell access on his machine rather than him having shell access to mine.

Any thoughts?

Grant. :)



Attachment: signature.asc
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq