Skip to content

Sharing SR Linux Terminal with SSHX#

Countless times I've been in a situation where I needed to share my terminal with someone or being asked to connect to someone's device instead.

Either I exhausted my networking foo and needed help from a colleague, or I was the one who was asked to help. In both cases, the problem was the same - how to quickly, securely1 and effortlessly share the terminal with someone else.

The problem is not new and there are many options on the table. From installing a VPN software and sharing the credentials, through zero-trust solutions like teleport, to using a simple SSH tunnel. All of these solutions are great, but they require some setup and configuration. And sometimes you just want to share your terminal with someone without going through the hassle of setting up a VPN or a zero-trust solution.

The sshx.io open-source service that just popped out offers a simple solution to this problem.

  1. Install the multi-arch lightweight2 sshx binary on your machine
  2. Run sshx
  3. Share the URL with someone
  4. Enjoy collaborative terminal in a responsive web UI with a multi panel canvas

I felt an immediate urge to try it out with SR Linux. And it worked like a charm!

It is super easy to bring sshx to SR Linux, here is a quick demo environment that you can spin up to try it out:

  1. Deploy a single-node SR Linux lab

    curl -sL srlinux.dev/clab-srl | sudo clab dep -c -t -
    
  2. Login to the newly-created srl node

    ssh srl
    
  3. In the SR Linux terminal go to bash and install sshx

    --{ running }--[  ]--
    A:srl# bash
    [admin@srl ~]$
    
  4. Install sshx

    [admin@srl ~]$ curl -sSf https://sshx.io/get | sh
    
  5. Run sshx, grab a link and pop up the Web UI with the terminal

    [admin@srl ~]$ sshx
    
    sshx v0.2.0
    
    ➜  Link:  https://sshx.io/s/bRPTeBxXiY#YKcwyLj03r0tik
    ➜  Shell: /bin/bash
    

  1. Usual security measures apply. Vet the installation binary, keep a vetted copy of the binary, etc. 

  2. The binary is around 3MB in size 

Comments