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

  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: 3 March 2015, 3:20 PM EST
Location: Switzerland - GE
Posts: 6,014
Thanks: 182
Thanked 451 Times in 422 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: 12 February 2015, 7:41 PM EST
Posts: 6,397
Thanks: 288
Thanked 674 Times in 643 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

Unix or Linux Image 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 04:32 AM.