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年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
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)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。