- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP connects to wrong account
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 01:25 AM
07-20-2007 01:25 AM
FTP connects to wrong account
This post is to learn how the connection process actually works.
.netrc contains:
machine target1 login user1 password passwd1
machine target2 login user2 password passwd2
all connections work when /etc/hosts contains:
ip_address1 local
ip_address2 target1
ip_address2 target2
all connections work when /etc/hosts contains:
ip_address1 local target1 target2
connections to target2 are established as user1 when /etc/hosts contains:
ip_address1 local
ip_address2 target1 target2
Can someone explain (or point me to) the sequence of steps to establish a connection?
Is there a configuration setting to correct the situation (besides the 2 lines in /etc/hosts)?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 01:30 AM
07-20-2007 01:30 AM
Re: FTP connects to wrong account
Maybe I don't understand this, but it looks to me like a duplicated IP address.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 02:01 AM
07-20-2007 02:01 AM
Re: FTP connects to wrong account
We want to connect as user1 when we ftp to target1 and we want to connects as user2 when we ftp to target2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 02:14 AM
07-20-2007 02:14 AM
Re: FTP connects to wrong account
I'm not sure about what additional information you need, so, for now, please see:
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node52.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2007 02:41 AM
07-20-2007 02:41 AM
Re: FTP connects to wrong account
connections to target2 are established as user1 (instead of user2) when both target aliases are on the same line in the /etc/hosts file
but
connections to target2 are established as user2 (correctly) when the aliases are in separate lines in the /etc/hosts file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2007 07:58 AM
07-27-2007 07:58 AM
Re: FTP connects to wrong account
The server name must appear last in the .netrc file when an alias is also referenced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2007 08:00 AM
07-27-2007 08:00 AM
Re: FTP connects to wrong account
Thanks