9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] ssh to osx
Date: Wed, 29 May 2013 09:47:34 +0900	[thread overview]
Message-ID: <4664AD68-E14B-4FC0-8066-FD19B69C7B85@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <f8efcdc395b6f4a1a1c149d6b2b5f6a3@proxima.alt.za>

thanks, the problem is resolved.

accessing from plan9 to mac with factotum data 
	key proto=pass service=ssh server=mmac.local user=arisawa !password=XXXX
we fails:
maia% ssh mmac
ssh: auth ctl msg `ssh-userauth k arisawa <password>' for /net/ssh/clone: ssh-userath auth failed (not Established)
maia% 
where maia is one of my plan9 hosts and mmac is a mac mini.

the log message in /var/log/secure.log on the mac is
May 27 07:19:30 mmac sshd[71497]: fatal: Read from socket failed: Connection reset by peer

I found ssh2 shows more graceful message as shown below.
maia% ssh2 mmac
connect is 0
Fingerprint: 80 0A FC 62 42 E1 22 5B 81 EE 2D 21 B2 BC EE 75 
Authentication methods: publickey,keyboard-interactive
No supported authentication methods found!
maia% 

yes, we need password authentication support by sshd on mac.
just putting 
	PasswordAuthentication yes
to /etc/sshd_config is enough to be authenticated.

now I can enter mac using ssh2
maia% ssh2 mmac
connect is 0
Fingerprint: 80 0A FC 62 42 E1 22 5B 81 EE 2D 21 B2 BC EE 75 
Authentication methods: publickey,password,keyboard-interactive
	Authentication by password succeeded.
Last login: Wed May 29 08:43:52 2013 from maia

-bash$ 

thanks all.

Kenji Arisawa


On 2013/05/26, at 23:00, lucio@proxima.alt.za wrote:

>> the mac only enables "keyboard interactive" auth and not  "password" auth,
>> these are very similar but different. you need to an option in a config file
>> on the mac to enable password auth.
> 
> Based on the Unixes I'm familiar with, the sshd config file is in
> /etc/ssh and is unusual in that it does not have the more conventional
> .conf extension.  It is specifically for SSHD, the server.  Which
> needs to be restarted if the config is changed.
> 
> ++L
> 
> 




  reply	other threads:[~2013-05-29  0:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26 11:25 arisawa
2013-05-26 12:05 ` lucio
2013-05-26 13:48 ` steve
2013-05-26 14:00   ` lucio
2013-05-29  0:47     ` arisawa [this message]
2013-05-29  8:29       ` Steve Simon
2013-05-29 13:45         ` erik quanstrom
2013-05-29 21:55           ` Steve Simon
2013-05-29 15:40         ` Charles Forsyth
2013-05-30  0:02       ` arisawa
2013-05-30  0:13         ` erik quanstrom

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=4664AD68-E14B-4FC0-8066-FD19B69C7B85@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9fans@9fans.net \
    /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).