ssh Creazione chiave

Genero chiave

ssh-keygen -t rsa -b 4096 -C "tua_email@dominio.it"

Leggo dentro la home/.ssh se si son generati

ls ~/.ssh/id_*

copio le chiavi

ssh-copy-id remote_username@server_ip_address

se non riesco a passare le chiavi

cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

 

Disabilitazione dell’autenticazione password SSH

/etc/ssh/sshd_config

PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
sudo systemctl restart ssh
sudo systemctl restart sshd

5 risposte a “ssh Creazione chiave”

  1. Heard some buzz about f88et, and had to try it. Registration was quick and straightforward. Some cool games! Take a look, you might get hooked! f88et

  2. kinggamebio – Kinggamebio: Top Philippines Slot Online & Casino Games. Experience easy Kinggamebio login, register today, and enjoy our official app download for the best gaming experience.Experience the premier Philippines slot online and casino games at Kinggamebio. Enjoy easy Kinggamebio login, fast register, and our official app download for the ultimate gaming experience. Join today! visit: kinggamebio

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *