PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > scp may be broken
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

scp may be broken

Réponse
 
LinkBack Outils de la discussion
Vieux 21/01/2007, 06h40   #1
Jude DaShiell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut scp may be broken

Earlier I set up a private key with ssh -keygen and copied it to the
proper place on my isp's computer for me to use. That works fine with ssh
but breaks with scp since scp says the key is too long and doesn't grant
access to the other machine. Could the pass phrase be too long for scp?



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 21/01/2007, 07h00   #2
Kevin Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: scp may be broken

On Sun, Jan 21, 2007 at 01:23:38AM -0500, Jude DaShiell wrote:
> Earlier I set up a private key with ssh -keygen and copied it to the
> proper place on my isp's computer for me to use. That works fine with ssh
> but breaks with scp since scp says the key is too long and doesn't grant
> access to the other machine. Could the pass phrase be too long for scp?

Not an answer but... People debugging ssh seem to benfit from using
verbose logging (possibly on both sides of the connection) to find
answers.
Cheers,
Kev
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keysever: subkeys.pgp.net | my NPO: cfsg.org |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFsw8+v8UcC1qRZVMRAr0PAJ49OwBxy458eGLkMTzy2e 6wAe3GXACfTwjD
IhphrinbpEIKQ7B5mqfi93Y=
=7e0B
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 21/01/2007, 18h30   #3
Greg Folkert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: scp may be broken

On Sun, 2007-01-21 at 01:23 -0500, Jude DaShiell wrote:
> Earlier I set up a private key with ssh -keygen and copied it to the
> proper place on my isp's computer for me to use. That works fine with ssh
> but breaks with scp since scp says the key is too long and doesn't grant
> access to the other machine. Could the pass phrase be too long for scp?


The biggest problem that occur with ssh/scp/etc:
1. Wrong permissions on the file the public part of the key pair is
in on the remote machine.
2. The name of the file the key is in, is incorrect.
3. Putting the private part of the key on the remote machine.

Fixing these problems are 95% of the answer.

Answers to these:
1. For BSD's OpenSSH on Debian, the perms need to be "chmod 0600"
2. $HOMEDIR/.ssh/authorized_keys
3. Copy the public part (id_dsa.pub) of the key pair to the machine
the "cat $HOMEDIRid_dsa.pub > $HOMEDIR/.ssh/authorized_keys |
chmod 0600 $HOMEDIR/.ssh/authorized_keys | rm
$HOMEDIR/id_dsa.pub"

That should take care of you issue, unless the ISP is using something
other than BSD's OpenSSH.
--
greg, greg@gregfolkert.net

The technology that is
Stronger, better, faster: Linux

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFs6/Q7WZpcbUkaHwRAgZXAKCGdmHnJk6BaCjWAQRZeN9zXdNprACgs tH2
v/Ov7fGUGih9855PqoJTVAk=
=yWPf
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 22/01/2007, 02h10   #4
Roberto C. Sanchez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: scp may be broken

On Sun, Jan 21, 2007 at 01:23:38AM -0500, Jude DaShiell wrote:
> Earlier I set up a private key with ssh -keygen and copied it to the
> proper place on my isp's computer for me to use. That works fine with ssh
> but breaks with scp since scp says the key is too long and doesn't grant
> access to the other machine. Could the pass phrase be too long for scp?
>

Some things that would us you diagnose the problem:

* the exact command used to generate the key
* an example ssh commandline that works
* an example scp commandline that does not work
* the *exact* errors that you see
* the output of ssh and/or scp with the -v option (or maybe even -vv or
-vvv, depending on whether the first is at all enlightening)

Regards,

-Roberto
--
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFtBtG1snWssAFC08RAopHAJ0VzXa9QycbX696PnhUvZ Vrp6SyZwCfbYsX
VY6U5IUsknlh7NkQWDfEBdk=
=q3QR
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13046 seconds with 12 queries