Skip to content

albuic/EternalTerminal

 
 

Repository files navigation

Eternal Terminal

Eternal Terminal is a remote shell that automatically reconnects without interrupting the session.

Website: https://mistertea.github.io/EternalTerminal/.

Installing

Mac OS X

The easiest way to install is using homebrew:

brew install MisterTea/et/et

Ubuntu

For Ubuntu, use our PPA:

sudo add-apt-repository ppa:jgmath2000/et
sudo apt-get update
sudo apt-get install et

Debian

For debian, use our deb repo. For stretch:

echo "deb https://mistertea.github.io/debian-et/debian-source/ stretch main" | sudo tee -a /etc/apt/sources.list
curl -sS https://mistertea.github.io/debian-et/et.gpg | sudo apt-key add -
sudo apt update
sudo apt install et

FreeBSD

On FreeBSD, use: pkg install eternalterminal

Other Linux

Install dependencies:

Fedora (tested on 25):

    sudo dnf install boost-devel libsodium-devel ncurses-devel protobuf-devel \
protobuf-compiler cmake gflags-devel wget unzip

Gentoo:

    sudo emerge dev-libs/boost dev-libs/libsodium sys-libs/ncurses \
dev-libs/protobuf dev-util/cmake dev-cpp/gflags \
net-misc/wget app-arch/unzip

Download and install from source:

wget https://github.com/MisterTea/EternalTerminal/archive/master.zip
unzip master.zip
cd EternalTerminal-master
mkdir build
cd build
cmake ../
make
sudo make install

Windows

Eternal Terminal works under WSL (Windows Subsystem for Linux). Follow the ubuntu instructions.

Verifying

Verify that the client is installed correctly by looking for the et executable: which et.

Verify that the server is installed correctly by looking for the etserver executable: which etserver.

You are ready to start using ET!

Using

ET uses ssh for handshaking and encryption, so you must be able to ssh into the machine from the client. Make sure that you can ssh user@hostname.

ET uses TCP, so you need an open port on your server. By default, it uses 2022.

Once you have an open port, the syntax is similar to ssh. Username is default to the current username starting the et process, use -u or user@ to specify a different if necessary.

et hostname (etserver running on default port 2022, username is the same as current)
et user@hostname:8000 (etserver running on port 8000, different user)

You can specify a jumphost and the port et is running on jumphost using -jumphost and -jport. If no -jport is given, et will try to connect to default port 2022.

et hostname -jumphost jump_hostname (etserver running on port 2022 on both hostname and jumphost)
et hostname:8888 -jumphost jump_hostname -jport 9999

Additional arguments that et accept are port forwarding pairs with option -t="18000:8000, 18001-18003:8001-8003", a command to run immediately after the connection is setup through -c.

Starting from the latest release, et supports parsing both user-specific and system-wide ssh config file. The config file is required when your sshd on server/jumphost is listening on a port which is not 22. Here is an example ssh config file showing how to setup when

  • there is a jumphost in the middle
  • sshd is listening on a port which is not 22
  • connecting to a different username other than current one.
Host dev
  HostName 192.168.1.1
  User fred
  Port 5555
  ProxyJump user@jumphost.example.org:22

With the ssh config file set as above, you can simply call et with

et dev (etserver running on port 2022 on both hostname and jumphost)
et dev:8000 -jport 9000 (etserver running on port 9000 on jumphost)

Building from source

OS/X

To build eternal terminal on mac, the easiest way is to grab dependencies with homebrew:

brew install --only-dependencies MisterTea/et/et
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
cd EternalTerminal
mkdir build
cd build
cmake ../
make

Debian/Ubuntu

Grab the deps and then follow the same process as for OS/X:

sudo apt install libboost-dev libsodium-dev libncurses5-dev libprotobuf-dev protobuf-compiler cmake libgflags-dev libutempter-dev cmake git
git clone --recurse-submodules https://github.com/MisterTea/EternalTerminal.git
cd EternalTerminal
mkdir build
cd build
cmake ../
make

Reporting issues

If you have any problems with installation or usage, please file an issue on github.

Developers

Packages

No packages published

Languages

  • C++ 96.7%
  • C 1.4%
  • CMake 1.3%
  • Other 0.6%