FTP and SFTP

PuGo can deploy static files via FTP and SFTP account. It only supports to connect remote directory with username and password.

pugo deploy ftp --local="dest" --user="user" --password="xxx" --host="127.0.0.1:21" --directory="pugo"
pugo deploy sftp --local="dest" --user="user" --password="xxx" --host="127.0.0.1:22" --directory="pugo"

--local set local directory that saving static files after building.

--user and --password set username and password for authorization to connect. In SFTP case, it doesn’t support connecting via .ssh/keys.

--host set remote host address and port.

--directory set remote directory. In SFTP case, use ~/ as alias of user’s home directory.