From owner-FreeBSD-users-jp@jp.FreeBSD.org Wed Oct 14 21:06:32 2009
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id n9EC6We42476;
	Wed, 14 Oct 2009 21:06:32 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from msag501.nifty.com (msag501.nifty.com [202.248.238.122])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id n9EC6WC42471
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 14 Oct 2009 21:06:32 +0900 (JST)
	(envelope-from chiauzu4m@mbd.nifty.com)
Received: from [192.168.1.10] (softbank221033002026.bbtec.net [221.33.2.26]) (authenticated)
	by msag501.nifty.com with ESMTP id n9EC6T09013988
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Wed, 14 Oct 2009 21:06:29 +0900
X-Nifty-SrcIP: [221.33.2.26]
Message-ID: <4AD5BECC.2070404@mbd.nifty.com>
From: Mitsuhiro Nakamura <chiauzu4m@mbd.nifty.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: FreeBSD-users-jp@jp.FreeBSD.org
References: <4AD28C15.50300@mbd.nifty.com> <4AD504E7.6050601@club.kyutech.ac.jp>
In-Reply-To: <4AD504E7.6050601@club.kyutech.ac.jp>
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 14 Oct 2009 21:06:36 +0900
X-Sequence: FreeBSD-users-jp 92536
Subject: [FreeBSD-users-jp 92536] Re: =?ISO-2022-JP?B?GyRCJW0lMBsoQg==?=
 =?ISO-2022-JP?B?GyRCJSQlcyU3JSclayRyMXMzVkFgOm4kR0BaJGobKEI=?=
 =?ISO-2022-JP?B?GyRCQlgkKCRrO3YkTyRHGyhC?=
 =?ISO-2022-JP?B?GyRCJC0kXiQ5JCshKRsoQg==?= 
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: chiauzu4m@mbd.nifty.com
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

$BCfB<$G$9!#(B
$B4dCK$5$^!"$"$j$,$H$&$4$6$$$^$9!#(B

$B$&$A$N4D6-$G$O$I$&$b!"$=$&$J$C$F$/$l$^$;$s!#(B
> ssh myhost.mydomain.jp "chsh -s /bin/sh"
kanri@myhost.mydomain.jp's password:

$B2?$bI=<($5$l$:$K=*$o$C$F$7$^$$$^$9!#(B

> ssh myhost.mydomain.jp dmesg
kanri@myhost.mydomain.jp's password:

$B$3$A$i$G$b2?$bI=<($5$l$^$;$s!#(B

$B2?$,LdBj$J$N$+!"$5$C$Q$j2r$j$^$;$s!#(B

$B>iD9%b!<%I$GI=<($7$?=j<!$N$h$&$K$J$j$^$7$?!#(B
$B2?$+2r7h$N;e8}$O$"$j$^$9$G$7$g$&$+!)(B
> ssh -v myhost.mydomain.jp "chsh -s /bin/sh"
OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to aqua.noii.jp [xxx.yyy.105.209] port 22.
debug1: Connection established.
debug1: identity file /home/syskanri/.ssh/identity type 0
debug1: identity file /home/syskanri/.ssh/id_rsa type -1
debug1: identity file /home/syskanri/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_5.1p1 FreeBSD-20080901
debug1: match: OpenSSH_5.1p1 FreeBSD-20080901 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'myhos.mydomain.jp' is known and matches the DSA host key.
debug1: Found key in /home/kanri/.ssh/known_hosts:10
debug1: ssh_dss_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/kanri/.ssh/id_rsa
debug1: Trying private key: /home/kanri/.ssh/id_dsa
debug1: Next authentication method: password
kanri@myhost.mydomain.jp's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending command: chsh -s /bin/sh
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 1344, received 1888 bytes, in 0.1 seconds
Bytes per second: sent 20135.8, received 28285.9
debug1: Exit status -1

$B2?$+%G!<%?$N$d$j$H$j$,$d$i$l$F$$$J$$$h$&$J$N$G$9$,!&!&!&!#(B

$B$4;XF3$h$m$7$/$*4j$$$7$^$9!#(B

Kouichiro Iwao $B$5$s$O=q$-$^$7$?(B:
> $B4dCK$G$9!#(B
> 
> $ ssh example.jp "chsh -s /bin/sh"
> $B$G$O$&$^$/$$$-$^$;$s$+(B?$B$&$A$N4D6-$G$O$3$l$GLdBj$"$j$^$;$s$G$7$?!#(B
> 7.2-RELEASE$B$G%f!<%6>pJs$N4IM}$ODL>o$N(B /etc/master.passwd $B$G(B
> $B9T$C$F$$$k4D6-$G$9!#(B
> 
> ssh$B$,%Q%9%o!<%I$rMW5a$7$?8e!"(Bchsh$B$,<+J,$N%Q%9%o!<%I$rMW5a$7$^$9$,!"(B
> chsh$B$N%Q%9%o!<%I$O%(%3!<%P%C%/$5$l$k$N$GCm0U$7$F$/$@$5$$!#(B
> 
> $BM>CL$G$9$,!"0lEY%m%0%$%s$K<:GT$7$?8e!"(B
> $ ssh example.jp dmesg
> $B$G$J$K$+%R%s%H$H$J$k>pJs$,F@$i$l$^$9$M!#(B
----------------------------------------------------
$B!!CfB<!!8wMN(B (Mitsuhiro Nakamura)
  mailto:chiauzu4m@mbd.nifty.com
