Outils pour utilisateurs

Outils du site


bms:utils:ssh

Ceci est une ancienne révision du document !


Table des matières

SSH Utils

Commands

  • Generate a SSH key
    ssh-keygen -t ed25519 -C "key name" -f <file_path>
  • Generate a RSA SSH key
    ssh-keygen -t rsa -b 4096 -C "key name" -f <file_path>
  • Remove a server from the known hosts
    ssh-keygen -f "~/.ssh/known_hosts" -R "<IP or domain>"

Configuration

  • Connect to a server without providing the key file, add the following to ~/.ssh/config.
    Host <IP or Domain>
      User <username>
      IdentityFile <ssh key file>
  • Use the SSH agent to avoid inputing the password everytime
    ssh-add <private key path>
bms/utils/ssh.1654157868.txt.gz · Dernière modification : 2022/06/02 10:17 de 195.68.6.6