Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > FTP

    sftpserver 0.2

    Download button

    No screenshots available
    Downloads: 180  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ruslan Spivak | More programs
    MIT/X Consortium Lic... / FREE
    December 13th, 2011, 20:21 GMT
    ROOT / Internet / FTP

     Read user reviews (0)  Refer to a friend  Subscribe

    sftpserver description

    A simple single-threaded SFTP server

    sftpserver is a simple single-threaded SFTP server based on Paramiko's SFTPServer.

    Installation

    Using pip:

     [sudo] pip install sftpserver

    Examples

    $ sftpserver
    Usage: sftpserver [options]
    -k/--keyfile should be specified


    Options:
     -h, --help show this help message and exit
     --host=HOST listen on HOST [default: localhost]
     -p PORT, --port=PORT listen on PORT [default: 3373]
     -l LEVEL, --level=LEVEL
     Debug level: WARNING, INFO, DEBUG [default: INFO]
     -k FILE, --keyfile=FILE
     Path to private key, for example /tmp/test_rsa.key

    $ sftpserver -k /tmp/test_rsa.key -l DEBUG


    Connecting with a Python client to our server:

    >>> import paramiko
    >>> pkey = paramiko.RSAKey.from_private_key_file('/tmp/test_rsa.key')
    >>> transport = paramiko.Transport(('localhost', 3373))
    >>> transport.connect(username='admin', password='admin', pkey=pkey)
    >>> sftp = paramiko.SFTPClient.from_transport(transport)
    >>> sftp.listdir('.')
    ['loop.py', 'stub_sftp.py']



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    SFTP server | secure FTP | single-threaded | SFTP | FTP

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM