Find Jobs
Hire Freelancers

Python FTP TLS basic example

$10-30 AUD

완료함
게시됨 5년 이상 전

$10-30 AUD

제출할때 지불됩니다
Hi, I am a beginner developer, recently the server I use has updated their FTP and now no longer supports my ftp connections. I need a basic working example using ftplib (FTP_TLS) or any other method to connect with the updated ftp server via python. Hosting provider '[login to view URL]' I imagine this is a very simple task for anyone who has used secure python ftp transfers before. I just want a working example of how to: - Open FTP connection - List the directory - Upload a file - Download a file - Close connection tested and working with my [login to view URL]'s FTP connections Ventraip's servers use "Pure-FTPd" im not sure if that helps you or not. --- THE ORIGINAL CODE --- import ftplib ftp = [login to view URL](_FTP_Addr,_FTP_User, _FTP_Pswd) --- NOW PRODUCES THIS ERROR: --- Traceback (most recent call last): File "C:\Users\James\Desktop\ingest test [login to view URL]", line 90, in <module> ftp = [login to view URL](_FTP_Addr,_FTP_User, _FTP_Pswd) File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 119, in __init__ [login to view URL](user, passwd, acct) File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 418, in login resp = [login to view URL]('USER ' + user) File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 273, in sendcmd return [login to view URL]() File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 244, in getresp raise error_temp(resp) ftplib.error_temp: 421-Sorry, cleartext sessions and weak ciphers are not accepted on this server. 421 Please reconnect using TLS security mechanisms. --- NEW CODE I HAVE BEEN TRYING: --- It seems I can connect via TLS OK but I get an error, maybe I missed something simple.. from ftplib import FTP_TLS ftp = FTP_TLS() [login to view URL] = 2 [login to view URL]('[login to view URL]', 21) [login to view URL]('username', 'password') ftp.prot_p() [login to view URL]() [login to view URL]() This receives the welcome message but produces this error on [login to view URL]() --- ERROR FROM MY TESTS --- Traceback (most recent call last): File "C:\Users\James\Desktop\ingest test [login to view URL]", line 32, in <module> [login to view URL]() File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 559, in nlst [login to view URL](cmd, [login to view URL]) File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 485, in retrlines [login to view URL]() File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 1051, in unwrap s = [login to view URL]() File "C:\Users\James\AppData\Local\Programs\Thonny\lib\[login to view URL]", line 698, in unwrap return [login to view URL]() OSError: [Errno 0] Error
프로젝트 ID: 18363336

프로젝트 정보

3 제안서
원격근무 프로젝트
활동 중 5년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hello, Kindly send me a message in order to discuss more details about your project and its requirements. Thank you!
$25 AUD 1일에
5.0 (3 건의 리뷰)
1.8
1.8
3 이 프로젝트에 프리랜서들의 평균 입찰은 $22 AUD입니다.
사용자 아바타
Hello The subject is very close to me. I recently did a similar project. Please contact. Greetings......
$25 AUD 1일에
5.0 (3 건의 리뷰)
2.1
2.1

고객에 대한 정보

국기 (AUSTRALIA)
surfers paradise, Australia
5.0
10
결제 수단 확인
3월 25, 2013부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.