mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
20 lines
355 B
Plaintext
20 lines
355 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# No password to make working with ssh binary easy
|
||
|
|
||
|
NAME=rclone-serve-sftp-ssh
|
||
|
IP=127.0.0.1
|
||
|
PORT=28623
|
||
|
|
||
|
start() {
|
||
|
run rclone serve sftp --addr ${IP}:${PORT} ${DATADIR}
|
||
|
|
||
|
echo type=sftp
|
||
|
echo ssh=ssh -o StrictHostKeyChecking=no -p ${PORT} user@${IP}
|
||
|
echo _connect=${IP}:${PORT}
|
||
|
}
|
||
|
|
||
|
. $(dirname "$0")/rclone-serve.bash
|