dssh

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

DSSH

Install Dependent libraries

# MacOS
brew install upx

# Linux
sudo apt install -y upx

Build

./build.sh

# MacOS
cp bin/dssh-darwin-amd64 /usr/local/bin/ds

# Linux
cp bin/dssh-linux-amd64 /usr/local/bin/ds

Usage

ds --help

# output
A command-line tools for ssh

Usage:
  ds {host}... [flags]
  ds [command]

Available Commands:
  completion  Generate completion script
  fix         fix ssh agent forward
  get         download files from remote host
  help        Help about any command
  host        host configs manage
  json        json tools.
  passwd      password generator
  put         upload local files to remote host
  server      simple file server

Flags:
  -c, --command string    remote run command
      --config string     config file (default is $HOME/.dssh.yaml)
  -f, --force             force run when failed
      --get-dest string   download local dest path
      --get-src string    download remote src path
  -h, --help              help for ds
      --host string       host name or remove host addr
  -j, --jump string       ssh jump proxy
  -m, --module string     remote run module
      --parallel int      max parallel run tasks num (default 1)
  -p, --port uint16       remote host port
      --put-dest string   upload remote dest path
      --put-src string    upload local src path
  -s, --script string     remote run script
  -t, --tags string       tags filter
  -u, --user string       username
  -v, --version           version for ds

Use "ds [command] --help" for more information about a command.

Configuration

Default use ~/.dssh.yaml.

modulesDir: ""

sshAuthSock: /root/.ssh/ssh_auth_sock

defaultJump: [email protected]:22

hosts:
  dev:
    addr: [email protected]:22
    tags: all

Documentation

Overview

Copyright © 2020 PWZER <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL