Outils pour utilisateurs

Outils du site


bms:utils:ssh

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.txt · Dernière modification : 2022/08/15 19:04 de 2a01:e0a:232:e2e0:330d:3351:3900:587b