9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ssh to osx
@ 2013-05-26 11:25 arisawa
  2013-05-26 12:05 ` lucio
  2013-05-26 13:48 ` steve
  0 siblings, 2 replies; 11+ messages in thread
From: arisawa @ 2013-05-26 11:25 UTC (permalink / raw)
  To: 9fans

Hello,

thanks to geoff and others, we can now connect to linux using ssh in official distribution from bell-labs.

term% ssh -r arisawa@hebe
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-38-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/

Last login: Sun May 26 11:00:17 2013 from maia.local
hebe$ 

where hebe is one of my linux host.

however I don't succeed yet in connecting to Mac using the ssh.

term% ssh -r arisawa@mmac
ssh: auth ctl msg `ssh-userauth k arisawa <password>' for /net/ssh/clone: ssh-userath auth failed (not Established)

where mmac is mac mini that runs on osx/lion. 
ssh server of mmac is working as shown below.

hebe$ ssh arisawa@mmac
The authenticity of host 'mmac (192.168.1.7)' can't be established.
RSA key fingerprint is 80:0a:fc:62:42:e1:22:5b:81:ee:2d:21:b2:bc:ee:75.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'mmac,192.168.1.7' (RSA) to the list of known hosts.
Password:
Last login: Thu May 23 06:55:11 2013
-bash$ 

I don't understand the difference of ssh server between linux and osx.
any suggestion is welcome.
anyone get connected to mac using ssh of Plan9?

Kenji Arisawa




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-26 11:25 [9fans] ssh to osx arisawa
@ 2013-05-26 12:05 ` lucio
  2013-05-26 13:48 ` steve
  1 sibling, 0 replies; 11+ messages in thread
From: lucio @ 2013-05-26 12:05 UTC (permalink / raw)
  To: 9fans

> I don't understand the difference of ssh server between linux and osx.
> any suggestion is welcome.
> anyone get connected to mac using ssh of Plan9?

I can't answer that.  Is it possible for you to run sshd on the iMAC
with debug options?  That will give you at least some hints on where
the problem lies.  That said, there are bits of SSH 2 that still need
work if I read the man pages correctly.

++L




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-26 11:25 [9fans] ssh to osx arisawa
  2013-05-26 12:05 ` lucio
@ 2013-05-26 13:48 ` steve
  2013-05-26 14:00   ` lucio
  1 sibling, 1 reply; 11+ messages in thread
From: steve @ 2013-05-26 13:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

i have done this on my mac, but to be honest i cannot remember what i did.
i found it on google somewhere and i am sure you will too. perhaps you will
be more through than i was and add a wiki entry when you work it out.

-Steve


On 26 May 2013, at 12:25, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:

> Hello,
> 
> thanks to geoff and others, we can now connect to linux using ssh in official distribution from bell-labs.
> 
> term% ssh -r arisawa@hebe
> Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-38-generic-pae i686)
> 
> * Documentation:  https://help.ubuntu.com/
> 
> Last login: Sun May 26 11:00:17 2013 from maia.local
> hebe$ 
> 
> where hebe is one of my linux host.
> 
> however I don't succeed yet in connecting to Mac using the ssh.
> 
> term% ssh -r arisawa@mmac
> ssh: auth ctl msg `ssh-userauth k arisawa <password>' for /net/ssh/clone: ssh-userath auth failed (not Established)
> 
> where mmac is mac mini that runs on osx/lion. 
> ssh server of mmac is working as shown below.
> 
> hebe$ ssh arisawa@mmac
> The authenticity of host 'mmac (192.168.1.7)' can't be established.
> RSA key fingerprint is 80:0a:fc:62:42:e1:22:5b:81:ee:2d:21:b2:bc:ee:75.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added 'mmac,192.168.1.7' (RSA) to the list of known hosts.
> Password:
> Last login: Thu May 23 06:55:11 2013
> -bash$ 
> 
> I don't understand the difference of ssh server between linux and osx.
> any suggestion is welcome.
> anyone get connected to mac using ssh of Plan9?
> 
> Kenji Arisawa
> 



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-26 13:48 ` steve
@ 2013-05-26 14:00   ` lucio
  2013-05-29  0:47     ` arisawa
  0 siblings, 1 reply; 11+ messages in thread
From: lucio @ 2013-05-26 14:00 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-26 14:00   ` lucio
@ 2013-05-29  0:47     ` arisawa
  2013-05-29  8:29       ` Steve Simon
  2013-05-30  0:02       ` arisawa
  0 siblings, 2 replies; 11+ messages in thread
From: arisawa @ 2013-05-29  0:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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
> 
> 




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-29  0:47     ` arisawa
@ 2013-05-29  8:29       ` Steve Simon
  2013-05-29 13:45         ` erik quanstrom
  2013-05-29 15:40         ` Charles Forsyth
  2013-05-30  0:02       ` arisawa
  1 sibling, 2 replies; 11+ messages in thread
From: Steve Simon @ 2013-05-29  8:29 UTC (permalink / raw)
  To: 9fans

> 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$

I do this a lot.

I find p9p a bit heavyweight for my taste - I prefer to use unix commands
on unix. Having said this I find bash ugly. The current rc on the labs distribution
should compile on osx (though I haven't tried that one for a while, I use
Linux more).

the only other bits I find I need are p.c mc.c and ls.c which I have back-ported
to posix - you are welcome to these if you want them.

-Steve



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  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
  1 sibling, 1 reply; 11+ messages in thread
From: erik quanstrom @ 2013-05-29 13:45 UTC (permalink / raw)
  To: 9fans

> I find p9p a bit heavyweight for my taste - I prefer to use unix commands
> on unix. Having said this I find bash ugly. The current rc on the labs distribution
> should compile on osx (though I haven't tried that one for a while, I use
> Linux more).

how do you keep all those different regular expressions straight?  :-)

- erik



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-29  8:29       ` Steve Simon
  2013-05-29 13:45         ` erik quanstrom
@ 2013-05-29 15:40         ` Charles Forsyth
  1 sibling, 0 replies; 11+ messages in thread
From: Charles Forsyth @ 2013-05-29 15:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

On 29 May 2013 09:29, Steve Simon <steve@quintile.net> wrote:

> I prefer to use unix commands
> on unix
>

I'd prefer to use unix commands when on unix, but since the Plan 9 ones
are closer to unix's than any of the gnu ones, I stick with p9p.

[-- Attachment #2: Type: text/html, Size: 621 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-29 13:45         ` erik quanstrom
@ 2013-05-29 21:55           ` Steve Simon
  0 siblings, 0 replies; 11+ messages in thread
From: Steve Simon @ 2013-05-29 21:55 UTC (permalink / raw)
  To: 9fans

> how do you keep all those different regular expressions straight?  :-)

This is indeed the biggest pain.

that and searching through the manual of GNU stuff looking for the option you want,
even the usage seems to run to several pages these days.

-Steve



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-29  0:47     ` arisawa
  2013-05-29  8:29       ` Steve Simon
@ 2013-05-30  0:02       ` arisawa
  2013-05-30  0:13         ` erik quanstrom
  1 sibling, 1 reply; 11+ messages in thread
From: arisawa @ 2013-05-30  0:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I made mistake

On 2013/05/29, at 9:47, arisawa <arisawa@ar.aichi-u.ac.JP> wrote:

>
> 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$
>

I should use official ssh:
maia% ssh -r mmac
Last login: Wed May 29 10:23:44 2013 from maia
-bash$

NOTE: ssh2 is in //sources.cs.bell-labs.com/contrib/john

maia% ls -l ssh*
--rwxrwxr-x M 360 arisawa sys  110296 May  4 07:22 ssh
--rwxrwxr-x M 360 arisawa sys  217137 May  4 07:22 ssh1
--rwxrwxr-x M 360 sys     sys 6384255 Oct 23  2010 ssh2
--rwxrwxr-x M 360 arisawa sys  299827 May  4 07:22 sshnet
maia%





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [9fans] ssh to osx
  2013-05-30  0:02       ` arisawa
@ 2013-05-30  0:13         ` erik quanstrom
  0 siblings, 0 replies; 11+ messages in thread
From: erik quanstrom @ 2013-05-30  0:13 UTC (permalink / raw)
  To: 9fans

On Wed May 29 20:04:09 EDT 2013, arisawa@ar.aichi-u.ac.jp wrote:
> I should use official ssh:
> maia% ssh -r mmac
> Last login: Wed May 29 10:23:44 2013 from maia
> -bash$
>
> NOTE: ssh2 is in //sources.cs.bell-labs.com/contrib/john
>
> maia% ls -l ssh*
> --rwxrwxr-x M 360 arisawa sys  110296 May  4 07:22 ssh
> --rwxrwxr-x M 360 arisawa sys  217137 May  4 07:22 ssh1
> --rwxrwxr-x M 360 sys     sys 6384255 Oct 23  2010 ssh2
> --rwxrwxr-x M 360 arisawa sys  299827 May  4 07:22 sshnet
> maia%

ssh2 is also in /n/sources/plan9/sys/src/cmd/ssh2, and it's
not a port of openssh.

- erik



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-30  0:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-26 11:25 [9fans] ssh to osx 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
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

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).