* [gentoo-user] any SSH guru on the list
@ 2005-11-20 19:38 Joseph
2005-11-20 20:22 ` Willie Wong
0 siblings, 1 reply; 5+ messages in thread
From: Joseph @ 2005-11-20 19:38 UTC (permalink / raw
To: gentoo
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] any SSH guru on the list
2005-11-20 19:38 [gentoo-user] any SSH guru on the list Joseph
@ 2005-11-20 20:22 ` Willie Wong
2005-11-20 20:39 ` Joseph
0 siblings, 1 reply; 5+ messages in thread
From: Willie Wong @ 2005-11-20 20:22 UTC (permalink / raw
To: gentoo-user
On Sun, Nov 20, 2005 at 12:38:45PM -0700, Joseph wrote:
> 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
>
<snip>
> What file control ssh-connection method?
>
man ssh_config
look for "PreferredAuthentications"
W
--
"Theoretically, there's no difference between theory and practice; but in
practice there is."
~Jared Kaplan
Sortir en Pantoufles: up 8 days, 12:41
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] any SSH guru on the list
2005-11-20 20:22 ` Willie Wong
@ 2005-11-20 20:39 ` Joseph
2005-11-20 20:53 ` Alexander Skwar
0 siblings, 1 reply; 5+ messages in thread
From: Joseph @ 2005-11-20 20:39 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] any SSH guru on the list
2005-11-20 20:39 ` Joseph
@ 2005-11-20 20:53 ` Alexander Skwar
2005-11-21 6:29 ` [gentoo-user] [SOLVED] " Joseph
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Skwar @ 2005-11-20 20:53 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [SOLVED] any SSH guru on the list
2005-11-20 20:53 ` Alexander Skwar
@ 2005-11-21 6:29 ` Joseph
0 siblings, 0 replies; 5+ messages in thread
From: Joseph @ 2005-11-21 6:29 UTC (permalink / raw
To: gentoo-user
On Sun, 2005-11-20 at 21:53 +0100, Alexander Skwar wrote:
> 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?
[snip]
> Alexander Skwar
Solved!
In my case it was a logical error, it appears had copied Public-Key from
from server I was logging into to the computer I was logging from. And
it suppose to be other way around.
I've learned my lesson now.
--
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-11-21 6:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20 19:38 [gentoo-user] any SSH guru on the list Joseph
2005-11-20 20:22 ` Willie Wong
2005-11-20 20:39 ` Joseph
2005-11-20 20:53 ` Alexander Skwar
2005-11-21 6:29 ` [gentoo-user] [SOLVED] " Joseph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox