Aggiorna README.md
This commit is contained in:
parent
2e8f607891
commit
6dbb0b9f40
1 changed files with 13 additions and 2 deletions
15
README.md
15
README.md
|
|
@ -1,5 +1,7 @@
|
|||
# SSH key per entrare in automatico su un ssh client
|
||||
|
||||
[orig link](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
|
||||
|
||||
Creare la key dal quale si vuole entrare con SSH senza login (x es 192.168.1.3)
|
||||
|
||||
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "Coppia chiavi SSH di tuo nome"
|
||||
|
|
@ -30,16 +32,25 @@ se si è digitata una password e la vi suole cambiare o eliminare (enter senza d
|
|||
|
||||
### Caricare in automatico SSH agent per tutti gli utenti
|
||||
|
||||
[orig link](https://www.baeldung.com/linux/ssh-agent-systemd-unit-configure)
|
||||
|
||||
copiare il file ssh-agent.service
|
||||
|
||||
sudo cp ssh-agent.service /etc/systemd/system/ssh-agent.service
|
||||
|
||||
editare il file ????
|
||||
editare il file
|
||||
|
||||
sudo nano /etc/environment
|
||||
|
||||
e in fondo inserire ????
|
||||
e in fondo inserire
|
||||
|
||||
SSH_AUTH_SOCK=/run/user/$(id -u)/ssh-agent.socket
|
||||
|
||||
avviare il sistema
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable ssh-agent.service
|
||||
sudo systemctl start ssh-agent.service
|
||||
sudo systemctl status ssh-agent.service
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue