9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: dpx@acl.lanl.gov
To: 9fans@cse.psu.edu
Subject: [9fans] 4th ed. cpu/auth server setup problems.
Date: Tue, 30 Apr 2002 19:03:25 -0600	[thread overview]
Message-ID: <20020501010150.A3D8D19980@mail.cse.psu.edu> (raw)


Before trying to upgrade our cpu/auth server I thought I would give a try at
setting up a standalone 4th ed. cpu/auth server and try to test it out with
a 4th ed. terminal. I have done the usual setup, built kernel, modified cpurc
setup, /lib/ndb/local, /lib/ndb/auth, added users etc, but I can't seem to
authenticate to it, using cpu, ssh, or telnet, below are some examples. Does
anyone have any ideas on what i might be doing wrong?

thx,

-dp


term% cpu -h bela

!Adding key: dom=acl.lanl.gov proto=p9sk1
user[dpx]:
password:
!
cpu: can't authenticate: bela: auth_proxy rpc write: \x01bootes: no auth server found for acl.lanl.gov
term% ssh bela

!Adding key: proto=pass server=bela service=ssh user=dpx
password:
!
ssh: client authentication failed

--------------------------------------
an attempt to turn on some debugging:

term% auth/factotum -d -a bela.acl.lanl.gov
term% ssh bela
1: no key matches proto=pass service=ssh server=bela user=dpx user? !password?
1: start proto=pass service=ssh server=bela user=dpx yields phase 0: needkey !password? proto=pass server=bela service=ssh user? user=dpx

!Adding key: proto=pass server=bela service=ssh user=dpx
password:
!
2: start proto=pass service=ssh server=bela user=dpx yields phase 0: ok
2: read 17 in phase 0 yields phase 0: ok
ssh: client authentication failed
term% cpu -h bela
3: start proto=p9any role=client yields phase CNeedProtos: ok
3: read 4093 in phase CNeedProtos yields phase CNeedProtos: phase: protocol phase error: read in state CNeedProtos
3: write 0 in phase CNeedProtos yields phase CNeedProtos: toosmall 2048
3: no key matches  proto=p9sk1 dom=acl.lanl.gov role=speakfor user? !password?
3: no key matches  proto=p9sk1 dom=acl.lanl.gov role=client user? !password?
3: write 19 in phase CNeedProtos yields phase CNeedProtos: needkey !password? dom=acl.lanl.gov proto=p9sk1 user?

!Adding key: dom=acl.lanl.gov proto=p9sk1
user[dpx]:
password:
!
3: start proto=p9sk1 role=client dom=acl.lanl.gov yields phase CHaveChal: ok
3: write 19 in phase CNeedProtos yields phase CHaveProto: ok
3: read 19 in phase CHaveProto yields phase CRelay: ok
3: read 8 in phase CHaveChal yields phase CNeedTreq: ok
3: read 8 in phase CRelay yields phase CRelay: ok
3: read 4093 in phase CNeedTreq yields phase CNeedTreq: phase: protocol phase error: read in state CNeedTreq
3: read 4093 in phase CRelay yields phase CRelay: phase: protocol phase error: read in state CNeedTreq
3: write 0 in phase CNeedTreq yields phase CNeedTreq: toosmall 141
3: write 0 in phase CRelay yields phase CRelay: toosmall 141
3: failure no auth server found for acl.lanl.gov
3: write 141 in phase CNeedTreq yields phase CNeedTreq: failure no auth server found for acl.lanl.gov
3: write 141 in phase CRelay yields phase CRelay: failure no auth server found for acl.lanl.gov
cpu: can't authenticate: bela: auth_proxy rpc write: \x01bootes: no auth server found for acl.lanl.gov
term%

--------------------------------

on bela(cpu/auth server):

/sys/log/listen:

bela Apr 30 13:36:45 tcp call for tcp22 on chan /net/tcp/21 (172.16.82.12)
bela Apr 30 13:38:00 tcp call for tcp22 on chan /net/tcp/21 (172.16.82.12)
bela Apr 30 13:38:33 il call for il17010 on chan /net/il/2 (172.16.82.12)
bela Apr 30 13:39:38 tcp call for tcp22 on chan /net/tcp/21 (172.16.82.12)
bela Apr 30 13:40:08 il call for il17010 on chan /net/il/2 (172.16.82.12)
bela Apr 30 13:40:24 tcp call for tcp22 on chan /net/tcp/21 (172.16.82.12)

/sys/log/ssh:

bela Apr 30 13:35:42 [82] connect from 172.16.82.12!18692
/bin/aux/sshserve: got unexpected <early eof: short net read: auth server protocol botch> message
bela Apr 30 13:36:45 [85] connect from 172.16.82.12!18693
/bin/aux/sshserve: got unexpected <early eof: short net read: auth server protocol botch> message
bela Apr 30 13:38:00 [88] connect from 172.16.82.12!18694
/bin/aux/sshserve: got unexpected <early eof: short net read: auth server protocol botch> message
bela Apr 30 13:39:38 [92] connect from 172.16.82.12!18695
/bin/aux/sshserve: got unexpected <early eof: short net read: auth server protocol botch> message
bela Apr 30 13:40:24 [96] connect from 172.16.82.12!18696
/bin/aux/sshserve: got unexpected <early eof: short net read: auth server protocol botch> message

--------------------
/lib/ndb/local:

#
#  files comprising the database, use as many as you like, see ndb(6)
#
database=
	file=/lib/ndb/local
	file=/lib/ndb/common

ipnet=lanl172-net
	ip=172.16.0.0
	ipmask=255.255.0.0
	ipsubmask=255.255.255.0


ipnet=lanl-acl172-net
	ip=172.16.82.0
	ipmask=255.255.255.0
	auth=172.16.82.9
	dnsdomain=acl.lanl.gov

#auth server
ip=172.16.82.9 sys=bela ether=0060cf20833f dom=bela.acl.lanl.gov proto=il
# terminal
ip=172.16.82.12 sys=jerq ether=00d059aaea2e dom=jerq.acl.lanl.gov proto=il



             reply	other threads:[~2002-05-01  1:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-01  1:03 dpx [this message]
2002-05-01  1:41 Russ Cox
2002-05-01  2:19 ` Dean Prichard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020501010150.A3D8D19980@mail.cse.psu.edu \
    --to=dpx@acl.lanl.gov \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).