From e750b7071ac2a5706d2425339f492fe6ee8df1bd Mon Sep 17 00:00:00 2001 From: asus Date: Thu, 21 Mar 2024 18:00:48 +0100 Subject: [PATCH] added tuto on connexion ssh --- tutos/computer.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tutos/computer.txt b/tutos/computer.txt index d396cb3..371ccd8 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -14,6 +14,16 @@ **sftp -P XXXX username@ssh.server.domain** se connecter a un server ssh avec le protocol ftp **vim scp://username@ssh.server.domain:XXXX//home/path/to/file** edit a remote file from local vim +**ssh to server :** + **ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_hugo2lejourdesprofs -C "hugo2lejourdesprofs"** : + - creates a key of type ed25519 (more secure than rsa), + - put it in the file ~/.ssh/id_ed25519_name_of_key, + - and add a comment "name_of_key" (for exemple) -> it will be shown next to the key in the .pub file + **ssh-copy-id -i ~/.ssh/id_ed25519_huho2planethoster.pub 9x3ph_hugo@9x3ph.ftp.infomaniak.com** : + - send a copy of the public key to the server, + - choose which key with -i (otherwise it send them all) + - name of server ssh connexion (you will have to enter your password) + **install touchegg to allow more touchpad gestures, like pinch-to-zoom** - https://github.com/JoseExposito/touchegg