How can I ftp to localhost from terminal ? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How can I ftp to localhost from terminal ?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-27-2009
aneuryzma aneuryzma is offline
Registered User
 
Join Date: May 2009
Last Activity: 6 September 2011, 6:02 AM EDT
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
How can I ftp to localhost from terminal ?

How can I ftp to localhost from terminal ?

I want to test my localhost user and password..

> ftp localhost

Trying ::1...
ftp: connect to address ::1: Connection refused
Trying fe80::1%lo0...
ftp: connect to address fe80::1%lo0: Unknown error: 0
Trying 127.0.0.1...
ftp: connect: Connection refused
ftp>
ftp>


ftp root@localhost
Trying ::1...
ftp: connect to address ::1: Connection refused
Trying fe80::1%lo0...
ftp: connect to address fe80::1%lo0: Unknown error: 0
Trying 127.0.0.1...
ftp: connect: Connection refused


thanks
Sponsored Links
    #2  
Old 05-27-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 27 November 2014, 5:08 PM EST
Location: Switzerland - GE
Posts: 5,927
Thanks: 165
Thanked 431 Times in 403 Posts
Well connection refused seems to mean your host denies ftp (look at your inetd.conf file...)
because for me:

Code:
ant:/home/vbe $ ftp localhost
Connected to localhost.
220 ant FTP server (Version 1.1.214.4(PHNE_36129) Tue Apr 22 06:43:36 GMT 2008) ready.
Name (localhost:vbe):

Sponsored Links
    #3  
Old 05-28-2009
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 25 November 2014, 5:09 PM EST
Posts: 6,396
Thanks: 287
Thanked 673 Times in 642 Posts
Couple of ideas:
Look at the localhost entry in /etc/hosts . It should be the first non-comment line and look something like this:


Code:
127.0.0.1       localhost       loopback

Also look to see if you have a .netrc file in your current directory containing garbage.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fail to telnet localhost 106 satimis Ubuntu 22 12-16-2007 10:54 PM
localhost problem! georgeplus UNIX for Advanced & Expert Users 1 03-26-2007 10:19 AM
AIX localhost error pramodvr UNIX for Dummies Questions & Answers 1 04-08-2005 10:10 AM
NIC The Status Down but I can ping the localhost??!! geoquest UNIX for Dummies Questions & Answers 3 09-02-2002 08:20 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 03:32 PM



All times are GMT -4. The time now is 08:12 PM.