News for hackers. Stuff that matters.
Re:Working Remotely? Pair SSH with Teleport by el_isma on Sunday April 17, 2022 @04:08PM (#31063989)
Or just use tmux with multiple attached users?

Granted, this solution let's you give ssh access to anywhere, but usually if I want to share a terminal, it's on a server the other person has access to.

Re:Working Remotely? Pair SSH with Teleport by lsowen on Tuesday April 19, 2022 @02:22AM (#31080168)
I often use tmate [1] to do this, as it simplifies some of the fiddly bits and allows granting another user temporary access without granting them credentials (eg ssh key or username/password).

[1] https://tmate.io/

Re:Working Remotely? Pair SSH with Teleport by smw on Tuesday April 19, 2022 @03:11AM (#31080409)
You probably shouldn't use tmate inside of most corps, your security team might be unhappy with bypassing network controls.
Re:Working Remotely? Pair SSH with Teleport by yakshaving_jgt on Tuesday April 19, 2022 @03:35AM (#31080504)
I'd be keen to hear why tmate isn't a good idea in terms of security.

As I understand it, the use of tmate is not so different from physically sitting next to a colleague and both of you taking the hot-seat with the computer.

Is the vulnerability around sending a shell to tmate.io? If so, I believe there is also an option to host the software on your own server.

Re:Working Remotely? Pair SSH with Teleport by orev on Tuesday April 19, 2022 @11:48AM (#31084750)
You don’t see the difference between: 1) allowing anyone on the Internet to use an ssh shell on an internal server that’s protected by authentication and firewalls, vs 2) someone you know, who has already been granted physical access to your location, and likely already has a security clearance as well as undergone interviews, training, and other security checks?
Re:Working Remotely? Pair SSH with Teleport by yakshaving_jgt on Tuesday April 26, 2022 @05:51AM (#31165595)
Seems like a false dichotomy to me. In both cases you illustrated, I would actually be pairing with someone I know.
Re:Working Remotely? Pair SSH with Teleport by hansel_der on Tuesday April 19, 2022 @10:29AM (#31083632)
teamviewer enters the chat
Re:Working Remotely? Pair SSH with Teleport by thanatos519 on Tuesday April 19, 2022 @03:56AM (#31080620)
... or screen, and you really just need a server both users have access to, and can reach the server you want to hack on together.
Re:Working Remotely? Pair SSH with Teleport by mihaigalos on Tuesday April 19, 2022 @04:41AM (#31080873)
Most corporate networks won't allow you to open ports on your machine without approval. Solutions like tmate (awesome btw!) don't work because they're filtered.

I use tmux with a reverse ssh to a VM in our cloud and then a colleague can forward ssh to the VM.

Re:Working Remotely? Pair SSH with Teleport by carlhjerpe on Tuesday April 19, 2022 @06:31AM (#31081427)
"tmate is useful as it goes through NATs and tolerate host IP changes. Accessing a terminal session is transparent to clients as they go through the tmate.io servers, acting as a proxy. No authentication setup is required, like setting up ssh keys."

Corporate can't block outgoing traffic on well-known ports without user impairment, even with MITM certificates in place HSTS solves that security hole making outbound 443 quite open in most networks.

EDIT: tmate uses SSH as outbound transport, just like you are.

Re:Working Remotely? Pair SSH with Teleport by mihaigalos on Tuesday April 19, 2022 @09:12AM (#31082616)
MITM certs are in place, yes. I suspected DNS lookup is denied, but that also works.

Not sure why my client is not connecting, if ssh is the outbound transport, perhaps it's because port 22 is blocked for non-network addresses?

Re:Working Remotely? Pair SSH with Teleport by exploderate on Tuesday April 19, 2022 @06:48AM (#31081510)
Should be fine if you host your own tmate server.
Re:Working Remotely? Pair SSH with Teleport by vasco on Tuesday April 19, 2022 @02:44AM (#31080267)
I prefer byobu as a UI, but for sure this is way simpler than the post.
Re:Working Remotely? Pair SSH with Teleport by el_isma on Tuesday April 19, 2022 @12:40PM (#31085502)
AFAIK byobu is just a theme for tmux or screen.
Re:Working Remotely? Pair SSH with Teleport by vasco on Tuesday April 19, 2022 @02:23PM (#31086858)
Hence calling it a UI, but yes, you are right.