Hi Grant,
Thanks very much for your reply. I got sidetrack until today. I spent
sometimes today to track down the problem. Now it worked. The problem
turned out to be
group permission that was set in sshd_config.
Thanks,
tat
Grant wrote:
> On 2 Aug 2006 07:48:26 -0700, "tat" <(E-Mail Removed)> wrote:
>
> >Hi,
> >
> >I have a PC (let its name to be AAA) on which I installed Debian Etch.
> >After boosting, this PC will mount a remote drive (via NFS) on its
> >/home. Everything went fine.
> >
> >Here come a weird part. If I am at my desk, I can login AAA without any
> >problem. However, if I try remote login AAA, I keep getting "Permission
> >denied, please try again" when I type my password.
>
> I cannot visualise your problem precisely, so I offer a working example:
>
> server example (deltree):
>
> ~$ cat /etc/exports
> # See exports(5) for a description.
> # This file contains a list of all directories exported to other computers.
> # It is used by rpc.nfsd and rpc.mountd.
>
> /home/share 192.168.1.0/24(sync,rw,no_root_squash)
> /home/mirror 192.168.1.0/24(sync,ro)
> #
> /home/share 192.168.2.0/24(sync,rw,no_root_squash)
> /home/mirror 192.168.2.0/24(sync,ro)
> #
> # export NFS mounted /usr for stinkpad laptop:
> /home/hal/usr 192.168.1.30/32(sync,rw,no_root_squash)
>
> client example (sempro):
>
> ~$ grep nfs /etc/fstab
> deltree:/home/share /home/share nfs hard,intr
> deltree:/home/mirror /home/mirror nfs noauto,user,hard,intr
> peetoo:/home/install /home/install nfs noauto,user,hard,intr
> peetoo:/home/public /home/public nfs noauto,user,hard,intr,exec
>
> >AAA is the second one which I setup. The first one is working without
> >any problem. I compared all exports, hosts, groups files in /etc in two
> >machines. They are the same.
>
> Did you run exportfs after setting up second box? Are they both
> running same nfs version, is portmap running both boxen?
>
> You might need to sniff lan (tcpdump, if lan is quiet enough) to see
> what's going over the wire.
>
> Grant.
|