Download the PHP package i-amdroid/sshfs-mount-tool without Composer

On this page you can find all versions of the php package i-amdroid/sshfs-mount-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sshfs-mount-tool

SSHFS Mount Tool

SSHFS Mount Tool (SMT) — CLI tool for manage and mount SSH connections as file system volumes.
SMT is a wrapper around SSHFS but designed to work with minimal typing.

Requirements

Installation

Install SSHFS

Ubuntu:

sudo apt install sshfs

macOS (osxfuse.github.io):

brew install sshfs

Install SSHFS Mount Tool

Option 1: Install with Composer

composer global require i-amdroid/sshfs-mount-tool

Check that Composer bin directory exists in your PATH. Depending on your OS, Composer bin directory can be $HOME/.composer/vendor/bin or $HOME/.config/composer/vendor/bin (read more). Depending on your shell, it can be set in ~/.bash_profile, ~/.bashrc, ~/.zshrc etc.

If Composer bin directory does not exist in PATH, add it like this:

export PATH="$PATH:$HOME/.composer/vendor/bin"

or

export PATH="$PATH:$HOME/.config/composer/vendor/bin"

Option 2: Manual installation

Download latest phar from Releases.

chmod 755 smt.phar
sudo mv smt.phar /usr/local/bin/smt

Usage

Add connection

smt add -v

Connection properties:

Property Description
id Connection ID
title Title
server Server
port Port
user Username
password Password
key Path to key file
mount Mount directory
remote Remote directory
options List of SSHFS options
ssh_options List of SSH options

Connections can be stored in YAML file in ~/.config/smt/stm.yml (global) or in stm.yml in current directory.

ssh_options are not prompted during add command, so they need to be added to config file manually.

Example of config file:

connections:
  msrv:
    title: myserver
    server: server.com
    port: null
    user: iam
    password: null
    key: ~/.ssh/id_rsa
    mount: ~/mnt/msrv
    remote: /var/www
    options:
      - some_option
      - SomeAnotherOption=yes
    ssh_options:
      - '-o SomeOption=100'
      - '-f SomeFlag 200'

Mount connection

smt <connection id>

or just:

smt

It will show saved connections to choose one or automatically mount, if only one connection exist in config file.

Unmount connection

smt um <connection id>

or:

smt um

All commands

smt (mount) [<connection id>, -p <password>] — Mount connection
smt unmount (um) [<connection id>] — Unmount connection
smt add — Add connection
smt remove (rm) [<connection id>] — Remove connection
smt list (ls) [<connection id>] — List connection properties
smt status (st) — Show status of connections
smt config (cfg) — Open config file
smt help (-h) [<command>] — Show help
smt --version (-V) — Show version
smt info (--info, -i) — Show information about dependencies
smt completion [<shell>] — Dump the shell completion script

Limited support commands

smt cd [<connection id>] — Change directory to connection mount directory
smt ssh [<connection id>] — Launch SSH session

Currently supported only in default Ubuntu terminal (gnome-terminal), default macOS terminal (Terminal.app) and iTerm.

Launching SSH sessions with password authentication require sshpass.

Installing on Ubuntu:

sudo apt install sshpass

Installing on macOS:

brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb

Config files

Global config file ~/.config/smt/stm.yml useful for storing multiple often used connections.

Config file stm.yml in current directory useful for storing per project connections in project folder. If only one connection exist in config file, it will be automatically used as <connection id> argument for commands. For example:

smt — Mount connection
smt um — Unmount connection

If SMT run from folder which contain stm.yml file, this file will be used as config file. Otherwise, global config file will be used. For using global config file from folder which contains stm.yml file, use global option (-g, --global).

Since v2.1, SMT supports user preferences in ~/.config/smt/config.yml file. Preferences allow to customize SSHFS commands, default options, add new terminals, choose editor, default mount folder, default global option state.

Development

SMT initially has been written on pure PHP.

V2 has been completely rewritten with Symfony Console component.

V3 has been upgraded to use Symfony 6.2.

V4 has been upgraded to use Symfony 6.3.

V4.1 has been upgraded to use Symfony 6.4.

Any contributions are welcome.

Future plans

Build

  1. Clone project
  2. Get dependencies via Composer

    composer install
  3. Run build process via Box

    box compile

All versions of sshfs-mount-tool with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
symfony/console Version ^7.0
symfony/event-dispatcher Version ^7.0
symfony/yaml Version ^7.0
symfony/process Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package i-amdroid/sshfs-mount-tool contains the following files

Loading the files please wait ....