Portál AbcLinuxu, 15. května 2025 05:29
Host vagrant
IdentityFile /home/tomas/.vagrant.d/insecure_private_key
V manuálové stránce -i identity_file
Selects a file from which the identity (private key) for public key authentication is read. The
default is ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa. Identity files may
also be specified on a per-host basis in the configuration file. It is possible to have multiple -i
options (and multiple identities specified in configuration files). If no certificates have been
explicitly specified by the CertificateFile directive, ssh will also try to load certificate informa‐
tion from the filename obtained by appending -cert.pub to identity filenames.
~/.ssh/config
:
# zakaznikA Host zakaznikb HostName skutecnyhost.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa_zakaznikA # zakaznikB Host zakaznikb HostName skutecnyhost.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa_zakaznikBNebo si predstavujes neco uplne jineho?
ssh
parametrem -i
určit, který klíč se má použít, nebo v konfiguraci ssh
(.ssh/config
) pomocí IdentityFile
určíte cestu ke konkrétnímu klíči.
Host
je to řešitelné. Pokud je pravda "od různých zákazníků" tedy různí zákazníci přistupují na Váš systém tak jejich veřejné kliče v příslušném účtu v authorized_keys
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.