[Debian] ssh et commande scp - Page 2

Résolu
Précédent
  • 1
  • 2
  1. bob031 Messages postés 8228 Statut Membre 473
     
    bon je continue à faire joujou avec ssh :

    avec : "PasswordAuthentication no" dans le fichier de configuration alors :

    [redfox@bob ~]$ ssh redfox@192.168.1.3
    Permission denied (publickey).
    [redfox@bob ~]$

    le truc c'est que j'ai pas de fichier ./ssh/authorized_keys
    d'après (en anglais) :
    http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1201279355477+28353475&threadId=1130893

    qui m'envoie à un tuto (en anglais) sur les publickeys :http://macnugget.org/projects/publickeys/

    en prime:
    SSH TIPS
    http://www6.sial.org/?tdfs=1&searchbox=1&showDomain=1

    :-))
    0
  2. bob031 Messages postés 8228 Statut Membre 473
     
    j'ai donc suivi le tuto : http://www6.sial.org/?tdfs=1&searchbox=1&showDomain=1
    c'est d'une simplicité absolue pour générer ses clés et les distribuer !
    j'ai donc rajouter ma nouvelle clé publique au fichier authorized_keys

    ensuite j'ai remis dans le fichier ssh_config la ligne :
    PasswordAuthentication no

    .... et voilà :
    [redfox@bob ~]$ ssh redfox@192.168.1.3
    Enter passphrase for key '/home/redfox/.ssh/id_rsa':
    Linux debian 2.6.22.6 #1 Mon Sep 17 20:13:13 CEST 2007 i686

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    You have new mail.
    Last login: Fri Jan 25 17:59:04 2008 from 192.168.1.2
    redfox@debian:~$

    ça marche !!!! content .....je suis !

    :-))
    0
  3. bob031 Messages postés 8228 Statut Membre 473
     
    tutos spécial debian :
    http://www.coagul.org/article.php3?id_article=347&Valider=Afficher+l%27article

    :-))
    0
  4. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  5. bob031 Messages postés 8228 Statut Membre 473
     
    bon je reviens avec le message d'erreur suivant sur ma gentoo :

    > redfox@gentoo[192.168.1.2]:~$ ssh redfox@192.168.1.3
    Permission denied (publickey).
    > redfox@gentoo[192.168.1.2]:~$ 


    la solution consiste à changer, dans le fichier /etc/ssh/sshd_config
    la valeur de ChallengeResponseAuthentication à yes.
    http://codept.blogspot.com/2006/11/permission-denied-publickey.html

    et cela donne :
    > redfox@gentoo[192.168.1.2]:~/.ssh$ ssh redfox@192.168.1.3
    Password: 
    Linux debian 2.6.26-2-486 #1 Thu Mar 26 00:13:41 UTC 2009 i686
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    You have new mail.
    Last login: Fri May  1 18:40:30 2009 from fedora9.me.com
     _________________________________________
    / Bonjour redfox, nous sommes le vendredi \
    | 1 mai 2009, et il est : 19 h 15 . You   |
    | have literary talent that you should    |
    \ take pains to develop.                  /
     -----------------------------------------
      \
       \____
      /@    ~-.
      \/ __ .- |
       // //  @
    > redfox@debian[192.168.1.3]:~$ 


    ps : pourquoi j'ai Last login: Fri May 1 18:40:30 2009 from fedora9.me.com alors que je suis sur la gentoo ?

    je peux alors réinstaller mes clés, puis remettre la valeur à no et ma connection ssh refonctionne ! Hourra !
    0
Précédent
  • 1
  • 2