Re: .netrc between aix and solaris

From: Robin Storch (robin_storch_at_trihealth.com)
Date: 05/13/04


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



Relevant Pages

  • Re: Special Character Problem
    ... I do seem to be able to login to other ftp sites where the passwords are standard ASCII characters. ... I'll try .netrc later today. ...
    (Fedora)
  • Re: Special Character Problem
    ... I do seem to be able to login to other ftp sites where the passwords are standard ASCII characters. ... I'll try .netrc later today. ...
    (Fedora)
  • Re: 6.0 w/mp2 ftp to 5.0.6 site
    ... ftp will ftp to the .netrc ... first dir it finds in the /etc/passwd entry in 5.0.6 ... ftp naturally ends up in the home directory of the user you login as. ... add a script to the .netrc entry ...
    (comp.unix.sco.misc)
  • 6.0 w/mp2 ftp to 5.0.6 site
    ... ftp will ftp to the .netrc ... entry on the 6.0 and login but ends up going to the ... first dir it finds in the /etc/passwd entry in 5.0.6 ...
    (comp.unix.sco.misc)
  • Re: IIS 6.0 FTP
    ... Server port: 21. ... I doubt IIS FTP has such feature. ... next, general 530 error indicating login failed, that could due to ... clients are using an order entry program created in Microsoft access. ...
    (microsoft.public.inetserver.iis.ftp)