|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
problemi con ssh-keygen
Vorrei loggarmi su una macchina senza digitare la password
[pippo@dido pippo]$ ssh-keygen -b 1024 -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 31:ec:ee:82:52:2f:3e:46:6f:18:97:9d:3a:a5:7b:dc pippo@dido Ora ho fatto scp id_dsa.pub root@192.168.0.110:/home/tomcat il trasferimentova ok poi faccio ssh root@192.168.0.110 ma mi chiede la password come faccio ad eliminare il processo della password? |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
scp id_dsa.pub root@192.168.0.110:/home/tomcat/.ssh/authorized_keys
il nome del file puo' cambiare a seconda delle distribuzioni, nel dubbio guarda la configurazione di sshd |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
in pratica io vorrei fare questo ma non ci riesco
http://www.di.unipi.it/~marcod/Didattica/So2/ssh.html |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
server remoto
root@localhost .ssh]# vi /etc/ssh/sshd_config #obsoletes QuietMode and FascistLogging #SyslogFacility AUTH SyslogFacility AUTHPRIV #LogLevel INFO # Authentication: #LoginGraceTime 120 #PermitRootLogin yes #StrictModes yes RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
qualche miglioramento c'è.
![]() ho messo la dir .ssh sotto /root/ ora però mi chiede passphrase come elimino la richiesta della passphrase? |
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
ok ho capito digito un passphrase devo usare poi un ssh-agent e un ssh-add.
altrimenti devo fare tutto senza passphrase Ora posso utilizzare questa tecnica insieme ad rsync? |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Iscritto dal: Jan 2001
Città: Milano
Messaggi: 5707
|
Quote:
sì, fai una prova ma dovrebbe funzionare. |
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
tanto per fare lo sborone, ti consiglio di leggere l'howto nella mia firma...
Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
![]() |
![]() |
![]() |
#9 | |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
Quote:
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
![]() |
![]() |
![]() |
#10 | |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
meglio usare ssh-agent e ssh-add... cosi' digiti la passphrase solo una volta quando accendi il pc (ma se ti fregano la chiave privata non hai problemi... ovviamente meglio non farsela fregare!) Ciao
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
|
![]() |
![]() |
![]() |
#11 | |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
Quote:
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
![]() |
![]() |
![]() |
#12 | |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
Codice:
ssh-agent > ./ssh-agent.txt Codice:
source ./ssh-agent.txt questo lo faccio una volta sola! (all'avvio della macchina) poi gli script che faccio devono contenere: source ./ssh-agent.txt in questo modo gli script funzionano senza dover immettere la passphrase.. Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
|
![]() |
![]() |
![]() |
#13 |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
si ma la passphrase la devi comunque mettere una volta
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
![]() |
![]() |
![]() |
#14 | |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
ma una volta ogni volta (che bel giro di parole) che accendo il pc... non e' poi cosi' grave! preferisco un po di sicurezza in piu' piuttosto che un po di comodita' in piu'! Ciao
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
|
![]() |
![]() |
![]() |
#15 | |
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
Quote:
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
![]() |
![]() |
![]() |
#16 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
ops..
come gestisco 2 AuthorizedKeysFile .ssh/authorized_keys la macchina A e la Macchina B che devono collegarsi sulla macchina C tramite un authorized_keys |
![]() |
![]() |
![]() |
#17 | |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
Ciao
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
|
![]() |
![]() |
![]() |
#18 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
come posso fare append?
|
![]() |
![]() |
![]() |
#19 | |
Senior Member
Iscritto dal: Dec 2000
Città: Trento
Messaggi: 5917
|
Quote:
Ciao!
__________________
Linux User #272700 >+++++++++[<+++++++++>-]<+.++.>++++[<---->-]<++.+++++++. HOWTO: SSH Firewall e DMZ ɐɹdosoʇʇos oʇuǝs ıɯ |
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 16:42.