You didn't say what version of ssh you are running.  If you are running OpenSSH 
v2.x than you may have a problem with your protocol line.  By default, it will 
use 2,1. This means it will connect using the version 2 protocol first, if 
possible.  If it does, then it will use either the rsa or dsa public/prvate keys 
and look in ~/.ssh/authorized_keys2.  

The easiest way is to see if you are using 2 or 1, is to run ssh -v -v -v 
[EMAIL PROTECTED]  This should show which protocol was used, or whether it is a 
file permissions problem.  If you still insist on v1 protocol, I would recommend 
2 instead, you can force this in your ~/.ssh/config file by setting 'Protocol 1' 
for your Host a.b.c stanza.

If you still can't get it to work, send the output of the ssh -v -v -v to the 
list and someone should be able to help.

        --Dave


>Date: Sat, 18 Aug 2001 23:03:37 -0400 (EDT)
>From: Rajarshi Guha <[EMAIL PROTECTED]>
>Subject: problem with scp -B
>
>Hi,
>  I'm runnign a batch job system (PBS) and it requires copying files
>between various nodes. Due to earlier problesm I've totally disabled
>ftp/rcp et al. So I'm using scp. However when I give the command:
>
>scp -B /tmp/somefile [EMAIL PROTECTED]:/home/rajarshi/
>
>(where a.b.c is the localhost)
>
>I get the error:
>
>Permission denied (publickey,password,keyboard-interactive).
>lost connection
>
>Now, in /etc/sshd_config RSAAuthentication is set to yes,
>PasswordAuthentication is set to yes and PermitEmptyPasswords is also set
>to yes. Furthermore I've used ssh-keygen to make my private and public
>keys and have the poublic key is $HOME/.ssh/authorized_keys.
>So I should be able to have passwd less logins - but doing ssh still asks
>for my passwd. And scp -B still does'nt work.
>
>Furthermore when I have the line 'BatchMode yes" (without the quotes) in
>$HOME/.ssh/config, the same command above gives me:
>
>Permission denied (publickey,password,keyboard-interactive).
>lost connection
>
>I'd really appreciate any help on this matter.
>
>TIA,
>
>
>-------------------------------------------------------------------
>Rajarshi Guha                  | email: [EMAIL PROTECTED]
>Dept of Chemistry              | web  : www.rajarshi.f2s.com 
>Pennsylvania State University  | ph   : (814) 863 1222
>-------------------------------------------------------------------
>GPG Fingerprint: E8F3 281F 93A9 C90C 853E  5136 8455 201B C92F F3E7
>-------------------------------------------------------------------
>Artificial intelligence has the same relation to intelligence as
>artificial flowers have to flowers.
>               -- David Parnas
>
>

--
David Knight French                           
Black Mountain Computer Consulting
Voice: (858)573-2959
Email: [EMAIL PROTECTED]

Reply via email to