[gentoo-user] any SSH guru on the list

2005-11-20 Thread Joseph
I'm having problem logging into my Gentoo server from Knoppix booted PC
Connection between two Gentoo servers works fine.

I narrow it to the authorization method ssh is trying to use.  When I'm
logging from Getnoo workstation the authorization ssh is trying to use:
service ssh-connection method publickey

When I try to login from Knoppix booted PC, ssh is trying to use:
ssh-connection method keyboard-interactive
Here is debug-log from Knoppix (failed) vs Gentoo (successful) login
attempt:

Gentoo (success)
debug1: userauth-request for user joseph service ssh-connection method none
debug1: attempt 0 failures 0
Failed none for joseph from 68.148.84.225 port 61399 ssh2
debug1: userauth-request for user joseph service ssh-connection method publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 1000/100 (e=0/0)
debug1: trying public key file /home/joseph/.ssh/authorized_keys
debug1: matching key found: file /home/joseph/.ssh/authorized_keys, line 1
Found matching DSA key: 2a:0f:a0:d5:43:c0:a3:30:78:e4:30:df:fb:18:dc:17
debug1: restore_uid: 0/0
Postponed publickey for joseph from 68.184.83.225 port 61399 ssh2
Connection closed by 68.184.83.225
debug1: do_cleanup

Knoppix (failed):
debug1: userauth-request for user joseph service ssh-connection method none
debug1: attempt 0 failures 0
Failed none for joseph from 68.148.84.225 port 61398 ssh2
debug1: userauth-request for user joseph service ssh-connection method 
keyboard-interactive
debug1: attempt 1 failures 1
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=joseph devs=
debug1: kbdint_alloc: devices ''
Failed keyboard-interactive for joseph from 68.184.83.225 port 61398 ssh2
Connection closed by 68.184.83.225
debug1: do_cleanup

What file control ssh-connection method?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] any SSH guru on the list

2005-11-20 Thread Joseph
On Sun, 2005-11-20 at 15:22 -0500, Willie Wong wrote:
 snip
  What file control ssh-connection method?
  
 
 man ssh_config
 look for PreferredAuthentications
 

Thanks for the pointer.  According to the manual the default for ssh
PreferredAuthentications is:
hostbased,publickey,keyboard-interactive,password
So it should work but for some reason or another Knoppix is not
defaulting to publickey; even though I have public key
in /knoppix/.ssh/authorized_keys

Adding to /etc/ssh/ssh_config
PreferredAuthentications publickey
has no effect.  Do I need to log-out and log-in in order to take it
effect?

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] any SSH guru on the list

2005-11-20 Thread Alexander Skwar
Joseph schrieb:

 Thanks for the pointer.  According to the manual the default for ssh
 PreferredAuthentications is:
 hostbased,publickey,keyboard-interactive,password
 So it should work but for some reason or another Knoppix is not
 defaulting to publickey; even though I have public key
 in /knoppix/.ssh/authorized_keys

What are the permissions for / /home /home/knoppix /home/knoppix/.ssh
/home/knoppix/.ssh/authorized_keys?

 has no effect.  Do I need to log-out and log-in in order to take it
 effect?

No.

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list