Re: .netrc between aix and solaris
From: Robin Storch (robin_storch_at_trihealth.com)
Date: 05/13/04
- Next message: Bridge: "connecting T3 to PCI Dual Fibre card"
- Previous message: Jason: "NFS mount Solaris -> Net app filer NT fileshare"
- In reply to: James Carlson: "Re: .netrc between aix and solaris"
- Next in thread: James Carlson: "Re: .netrc between aix and solaris"
- Reply: James Carlson: "Re: .netrc between aix and solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 May 2004 14:41:03 -0400
I'm using IP addresses to get around naming issues. My .netrc seems to be
okay:
machine XXX.XXX.XXX.XXX login sunuser password sunpw
machine XXX.XXX.XXX.XXX login aixuser password aixpw
... 2 other servers...
When I run the ftp command to these servers at the pwd where .netrc is, I
get an automatic login and the ftp> prompt is returned on all of them except
this sun server. Instead, I get:
Name (IP addr:loginname): The loginname being who I am logged in as,
not the login name in the .netrc
It's as though the .netrc is being ignored.
I tried it with another sun server I have and it worked okay and I got an
ftp> prompt. So, it seems to be just the one sun server that doesn't run
the .netrc. I'm not sure what is stopping it.
I'm running propriety, health care type applications that can't handle scp
for sftp, so that's why I'm using ftp. I tried the aix newsgroup too, but
didn't get too far.
"James Carlson" <james.d.carlson@sun.com> wrote in message
news:xoavoeosdx2y.fsf@sun.com...
> "Robin Storch" <robin_storch@trihealth.com> writes:
> > I'm trying to set up an ftp script going between aix 5.1 and Solaris 8.
I
> > created an .netrc file on the aix box in my home directory with 600
> > permissions that contains the machine name, login id and password of the
> > solaris machine. However, everytime I try to run ftp, I get a login
prompt
> > that contains the login name that I am logged in as. How do I get
.netrc to
> > work correctly between aix and solaris?
>
> If you're having a problem with the ftp client on AIX, comp.unix.aix
> might be a better place to look.
>
> The machine name in .netrc must exactly match the name of the machine
> specified on the ftp command line. So, if it's "foo.bar.com" in
> .netrc, you'll need to use "ftp foo.bar.com" and not "ftp
> foo.blah.bar.com", even if both addresses refer to the same remote
> machine.
>
> The entry has to be formatted exactly right or it'll be ignored. It
> should look like:
>
> machine sunmachine.foo.com login somename password somepassword
>
> Why are you using ftp anyway? scp is much better -- no cleartext
> passwords, easier to script, can compress data on the fly, ...
>
> --
> James Carlson, IP Systems Group <james.d.carlson@sun.com>
> Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
> MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677
- Next message: Bridge: "connecting T3 to PCI Dual Fibre card"
- Previous message: Jason: "NFS mount Solaris -> Net app filer NT fileshare"
- In reply to: James Carlson: "Re: .netrc between aix and solaris"
- Next in thread: James Carlson: "Re: .netrc between aix and solaris"
- Reply: James Carlson: "Re: .netrc between aix and solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|