Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 05-27-2009
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 24 July 2015, 5:57 PM EDT
Location: Switzerland - GE
Posts: 6,072
Thanks: 197
Thanked 460 Times in 429 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 Unix and Linux 05-28-2009
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 22 June 2015, 6:47 PM EDT
Posts: 6,399
Thanks: 288
Thanked 675 Times in 644 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 09:54 PM
localhost problem! georgeplus UNIX for Advanced & Expert Users 1 03-26-2007 09:19 AM
AIX localhost error pramodvr UNIX for Dummies Questions & Answers 1 04-08-2005 09:10 AM
NIC The Status Down but I can ping the localhost??!! geoquest UNIX for Dummies Questions & Answers 3 09-02-2002 07:20 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 02:32 PM



All times are GMT -4. The time now is 08:09 AM.