github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestSFTPOpenssh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  NAME=rclone-sftp-openssh
     6  USER=rclone
     7  PASS=password
     8  
     9  . $(dirname "$0")/docker.bash
    10  
    11  start() {
    12      docker run --rm -d --name ${NAME} \
    13             rclone/test-sftp-openssh
    14      
    15      echo type=sftp
    16      echo host=$(docker_ip)
    17      echo user=$USER
    18      echo pass=$(rclone obscure $PASS)
    19      echo _connect=$(docker_ip):22
    20  }
    21  
    22  . $(dirname "$0")/run.bash