Sish is a secure, simple, and transparent way to connect to SSH servers through firewalls, NATs, or proxies. It allows you to access your SSH server securely from anywhere without configuring complex port forwarding or tunneling rules. In this tutorial, we will show you how to install Sish on Ubuntu Server Latest.
Before you begin with this tutorial, make sure that you have:
Sish is written in Go. Therefore, you need to install the Go programming language on your Ubuntu server.
sudo apt update
sudo apt install golang-go
go version
The output should display the installed Go version.
Now that you have installed Go, you can proceed to install Sish on your Ubuntu server.
git clone https://github.com/antoniomika/sish.git
cd sish
go build
sudo make install
After the installation, you need to configure Sish to start automatically and enable the Sish service.
sudo mkdir -p /etc/sish
sudo cp ./sish.yaml /etc/sish/
sudo nano /etc/sish/sish.yaml
Configure the parameters according to your needs. For example, you can change the following parameters:
listen
: The listen address and port for the Sish server (default: 0.0.0.0:22
).timeout
: The maximum idle time before closing the connection (default: 3m
).ssh_server
: The SSH server host and port (default: localhost:22
).auth_keys_file
: The SSH authorized keys file location (default: ~/.ssh/authorized_keys
).sudo nano /etc/systemd/system/sish.service
[Unit]
Description=Sish SSH Tunneler
After=network.target
[Service]
ExecStart=/usr/local/bin/sish --config /etc/sish/sish.yaml
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Save and close the service file.
Reload the systemd daemon using the following command:
sudo systemctl daemon-reload
sudo systemctl enable sish.service
sudo systemctl start sish.service
Now that you have installed and configured Sish, you can test it by connecting to your SSH server through the Sish server.
Open a new terminal on your local machine.
Install the Sish client using the following command:
sudo apt install sish-client
sish tunnel
Enter your SSH server credentials.
Once connected, you can access your SSH server through the Sish server using the following command:
ssh <username>@localhost -p <sish_port>
Replace <username>
with your SSH server username and <sish_port>
with the Sish server port specified in the listen
parameter in the Sish configuration file.
Congratulations! You have successfully installed and configured Sish on your Ubuntu server. You can now access your SSH server securely from anywhere without configuring complex port forwarding or tunneling rules.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!