how can I login anonymously with ftp (/usr/bin/ftp)? - Stack ...

文章推薦指數: 80 %
投票人數:10人

Anonymous ftp logins are usually the username 'anonymous' with the user's email address as the password. Some servers parse the password to ... Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Collaborateandshareknowledgewithaprivategroup. CreateafreeTeam WhatisTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore howcanIloginanonymouslywithftp(/usr/bin/ftp)? AskQuestion Asked 11years,5monthsago Modified 3years,9monthsago Viewed 213ktimes 24 9 I'mtryingtoconnecttoanFTPserverwhichallowsanonymousaccess,Idon'tknowhowtospecifytheappropriateusername/passwordrequiredtodothisthough. I'vetriedusinganonymous/anonymousastheuser/passwithnoluck,aswelltheemptystringandvariouscombinationsofthetwo,etc. It'sgottabesomethingsimplethatI'mmissing,Icanuseconnectjustfinewithcurlftp://server/ Usingpython: stu@sente~$cat-|python importftplib ftp=ftplib.FTP("ftp.server") ftp.set_debuglevel(2) ftp.connect() ftp.login() list=ftp.nlst() ftp.close() print"\n","".join(list) ^D *get*'220ftp.serverNcFTPdServer(licensedcopy)ready.\r\n' *resp*'220ftp.serverNcFTPdServer(licensedcopy)ready.' *cmd*'USERanonymous' *put*'USERanonymous\r\n' *get*'331Guestloginok,sendyourcompletee-mailaddressaspassword.\r\n' *resp*'331Guestloginok,sendyourcompletee-mailaddressaspassword.' *cmd*'PASS**********' *put*'PASS**********\r\n' *get*'230Loggedinanonymously.\r\n' *resp*'230Loggedinanonymously.' *cmd*'TYPEA' *put*'TYPEA\r\n' *get*'200Typeokay.\r\n' *resp*'200Typeokay.' *cmd*'PASV' *put*'PASV\r\n' *get*'227EnteringPassiveMode(12,161,242,12,128,138)\r\n' *resp*'227EnteringPassiveMode(12,161,242,12,128,138)' *cmd*'NLST' *put*'NLST\r\n' *get*'150Dataconnectionacceptedfrom208.118.225.99:38451;transferstarting.\r\n' *resp*'150Dataconnectionacceptedfrom208.118.225.99:38451;transferstarting.' *get*'226Listingcompleted.\r\n' *resp*'226Listingcompleted.' Obinbinpubpublicsci_tech_med ftp Share Improvethisquestion Follow askedOct14,2010at19:41 sentesente 2,18722goldbadges1616silverbadges2424bronzebadges 2 AmImisunderstandingsomething?Thelistinglookslikeitconnectedjustfine. – MichaelBurr Oct14,2010at19:46 Iconcur.Thatlooksjustlikewhatyouwouldwant.Ofcourse,itwillmostlikelyberead-only. – SDsolar Jan1,2017at0:06 Addacomment  |  3Answers 3 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 34 Anonymousftploginsareusuallytheusername'anonymous'withtheuser'semailaddressasthepassword.Someserversparsethepasswordtoensureitlookslikeanemailaddress. User:anonymous Password:[email protected] Share Improvethisanswer Follow answeredOct14,2010at19:44 AmardeepAC9MFAmardeepAC9MF 17.6k55goldbadges3838silverbadges5050bronzebadges 2 InpasswordshouldIprovideanactuale-mailaddress? – user189942 Jul8,2015at13:47 Generallyitonlyneedstobesomethinginthesyntacticformofanemailaddress. – AmardeepAC9MF Jul8,2015at21:12 Addacomment  |  16 AnonymousFTPusageiscoveredbyRFC1635:HowtoUseAnonymousFTP: WhatisAnonymousFTP? AnonymousFTPisameansbywhicharchivesitesallowgeneralaccess totheirarchivesofinformation.Thesesitescreateaspecial accountcalled"anonymous". … Traditionally,thisspecialanonymoususeraccountacceptsanystring asapassword,althoughitiscommontouseeitherthepassword "guest"orone'selectronicmail(e-mail)address.Somearchive sitesnowexplicitlyaskfortheuser'se-mailaddressandwillnot allowloginwiththe"guest"password.Providingane-mailaddress isacourtesythatallowsarchivesiteoperatorstogetsomeideaof whoisusingtheirservices. Thesearegeneralrecommendations,though.EachFTPservermayhaveitsownguidelines. ForsampleuseoftheftpcommandonanonymousFTPaccess,seeappendixA: atlas.arc.nasa.gov%ftpnaic.nasa.gov Connectedtonaic.nasa.gov. 220naic.nasa.govFTPserver(WedMay412:15:15PDT1994)ready. Name(naic.nasa.gov:amarine):anonymous 331Guestloginok,sendyourcompletee-mailaddressaspassword. Password: 230----------------------------------------------------------------- 230-WelcometotheNASANetworkApplicationsandInfoCenterArchive 230- 230-AccesstoNAIC'sonlineservicesisalsoavailablethrough: 230- 230-Gopher-naic.nasa.gov(port70) 230-World-Wide-Web-http://naic.nasa.gov/naic/naic-home.html 230- 230-Ifyouexperienceanyproblemspleasesendemailto 230- [email protected] 230- 230-orcall+1(800)858-9947 230----------------------------------------------------------------- 230- 230-PleasereadthefileREADME 230-itwaslastmodifiedonFriDec1013:06:331993-165daysago 230Guestloginok,accessrestrictionsapply. ftp>cdfiles/rfc 250-PleasereadthefileREADME.rfc 250-itwaslastmodifiedonFriJul3016:47:291993-298daysago 250CWDcommandsuccessful. ftp>getrfc959.txt 200PORTcommandsuccessful. 150OpeningASCIImodedataconnectionforrfc959.txt(147316bytes). 226Transfercomplete. local:rfc959.txtremote:rfc959.txt 151249bytesreceivedin0.9seconds(1.6e+02Kbytes/s) ftp>quit 221Goodbye. atlas.arc.nasa.gov% SeealsotheexamplesessionattheUniversityofEdinburghsite. Share Improvethisanswer Follow editedOct7,2021at5:49 CommunityBot 111silverbadge answeredNov17,2013at14:05 PalecPalec 11.3k77goldbadges5757silverbadges125125bronzebadges Addacomment  |  2 Asotherspointout,theusernameisusuallyanonymous,andthepasswordisusuallyyoure-mailaddress,butthisisnotuniversallytrue,andhasbeenfoundnottoworkforcertainanonymousFTPsites.Forexample,atleastsomecPanelsitesseemtodeviatefromthenorm,andifgiventhetraditionalusernamewithoutdomain,oneofvariouserrorsmayresult: IftheserverusesPure-FTPastheFTPserver: 421Can'tchangedirectoryto/var/ftp/errormessage. IftheserverusesProFTPastheFTPserver: 530LoginAuthenticationFailederrormessage. Whenoneoftheaforementionederrorsoccurswhenattemptinganonymousaccess,tryincludingadomainwiththeusername.Forexample,whereexample.comisthedomainusedinyoure-mailaddress: Username:[email protected] InthespecificcaseofacPanelsite,thepasswordvalueisunimportant,andmaybeleftblank,butthereisnoharminprovidinga"traditional"anonymouspasswordformattedasane-mailaddress. Forreference,thisanswerisbasedoncontentfoundonadocumentation.cpanel.netAnonymousFTPpage.Atthetimeofthiswriting,itstated: WhenuserslogintoFTPanonymously,theymustformatusernames [email protected],whereexample.comrepresentstheuser's domainname.Thisrequirementdirectsyourservertothecorrect public_ftpdirectory. Share Improvethisanswer Follow answeredJul2,2018at17:54 kbulgrienkbulgrien 4,15922goldbadges2323silverbadges4040bronzebadges Addacomment  |  YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedftporaskyourownquestion. TheOverflowBlog BestpracticestoincreasethespeedforNext.jsapps Timetogetontrend FeaturedonMeta StackExchangeQ&AaccesswillnotberestrictedinRussia AskWizardforNewUsersFeatureTestisnowLive StagingGroundWorkflow:QuestionDetails&Actions Callingupmoderatorsfromthe2021election-welcome,Dharman&RyanM! TheFutureofourJobsAdslots Related 6 FTPuploadfileworksmanually,butfailsusingPythonftplib 1 SocketFTPinC:authenticationgets530"Pleaseloginwithuserandpass"withanonymous 1 HowtogetfilesfromFTPSserverwithjava? 1 WhywontNetbeansuploadcorrectlytomyphpsever 0 FTPuploadinpassivemodenotworking,Itopensdataconnectionandtimesoutwith"Datachanneltimedout." 2 FTPSClientretrievefile()hanging 1 C#FTPResponse550:Thespecifiednetworknameisnolongeravailable 0 HowtouserawFTPSTORcommand 1 Python:Filedownloadusingftplibhangsforeverafterfileissuccessfullydownloaded 0 mpackcommandinkshscript,ftpfilefirstfromwindows HotNetworkQuestions MILP-quantifymagnitudeofoverlap Canyouidentifythistoolthatlookslikeapyramidalrakewithanintegratedslidingplatetocompressthetines? Locatingelectricalconduitunderwalkway Whyarelowpassrates(below50%)forexamsconsideredacceptableinGermany? WhynotmarchoverRivendellandtakethering? Whatisthebiggestmonarchywherethemonarchhasrealpowerinmodernday? HowmightIinstantiatethisNPCconceptinafunwaywithinthesystemsofDnD5e?(thinkPictureofDorianGraycrossedwithDrJekyll) Doeslossyaudiocompressiondamagedatasettedata? Howtoloopaprincipledtexture? GreekquestionPhilippians3:9isit"faithinChrist"or"faithofChrist" CareCreditCo-signerTriplesCreditLine,Maxesitout&tanksmyscore HowdoesLDStheologysufferwhenBookofMormonhistoricalclaimsareunsupported? Whatmightbea"compelling"reasonforapplyingtodefendmyph.d.degreeremotely? HowdoIgetareadableprintedcopyofamanpage CSS-LikecolorclassesinPhotoshoporIllustrator PlayCaesar'sCipherwithLettersonly Howtodeleteedgesofallflatsurfaces? Hasthenatureofthebiologicalscienceschanged? Wouldtherebelegalrepercussionsforusingwordslike'kindred','embrace','disciplines',termsdefinedindictionaries,inmyRPG? WhathappenswhenLinuxgoesoutoflettersfordrives? Makeobjectglowwhennearotherobjects WhyarehighpassratesforcoursesconsideredacceptableintheUS? "aL2learner"or"anL2learner" Cananyoneidentifythisveggie? morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. Expandthemeselector New IntroducingFiltersforStackOverflow Filtersaren’tjustforselfiesanymore.IntroducingFiltersforStackOverflow-thebestwaytobeautifythesitewhereyouspend10hoursaday. LearnmoreaboutFilters Revertandhidethisfeature Defaulttheme 3Dglassestheme Bookfacetheme Hotdogstandtheme FrisaLanktheme MariOverflowtheme Terminaltheme TopSecrettheme Windows3.1theme DefaultbyStackOverflow 3DglassesbyDigitalDimensionDesigners BookfacebyTom HotdogstandbyTheDeliciousOne FrisaLankbyChildofthe’90s MariOverflowbyLuigiLuigi TerminalbyNeo TopSecretbyAgentsJ&K Windows3.1byMs.Dos Hotdogstand TheDeliciousOne Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?