One line ftp server in python

前端 未结 9 1833
清歌不尽
清歌不尽 2020-12-07 08:03

Is it possible to have a one line command in python to do a simple ftp server? I\'d like to be able to do this as quick and temporary way to transfer files to a linux box wi

9条回答
  •  青春惊慌失措
    2020-12-07 08:07

    apt-get install python3-pip
    
    pip3 install pyftpdlib
    
    python3 -m pyftpdlib -p 21 -w --user=username --password=password
    
    -w = write permission
    
    -p = desired port
    
    --user = give your username
    
    --password = give your password
    

提交回复
热议问题