901 private links
Experience hassle-free SSH sessions. Follow our guide to keep your connections alive and eliminate freezing troubles.
In remote server management and secure data transfer, SSH (Secure Shell) stands as an indispensable tool. However, its convenience and security can sometimes be marred by a common frustration: frozen SSH sessions.
Cet article décrit la mise en place d’une connexion SSH sans mot de passe, à l’aide d’une paire de clés. Si l’on se connecte quotidiennement à une machine distante, la connexion SSH sans mot de passe évite d’avoir à saisir le mot de passe à chaque fois.
Dans cet article, je vais vous présenter le concept de proxy et ses usages. Puis je vous montrerai une méthode simple pour mettre en place un Proxy SOCKS au travers d’un tunnel SSH. Cet article n’a pas vocation à anonymiser une connexion internet. L’objectif ici est d’accéder à un autre réseau pour contourner les limites d’un pare-feu ou bien accéder à des services, interfaces web… disponibles sur cet autre réseau.
It’s a good practice to create one SSH key for each server or service that you want to use. (Yes, even for your GitLab/GitHub account). This way if your key is compromised only one server gets compromised and not all of them. This can be a bit tricky to manage, but you can use an SSH config file, specifying the
IdentityFile
parameter for each host and it will become easier.
Usage
- Once installed, launch tmate with
tmate
. You should see something likessh PMhmes4XeKQyBR2JtvnQt6BJw@nyc1.tmate.io
appearing. This allows others to join your terminal session. All users see the same terminal content at all time. This is useful for pair programming where two people share the same screen, but have different keyboards.- 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.
- Run
tmate show-messages
in your shell to see tmate's log messages, including the ssh connection string. - tmate also allow you to share a read-only view of your terminal. The read-only connection string can be retrieved with
tmate show-messages
. - tmate uses
~/.tmate.conf
as configuration file. It uses the same tmux syntax. In order to load the~/.tmux.conf
configuration file, addsource-file ~/.tmux.conf
in the tmate configuration file.