Socket
Book a DemoInstallSign in
Socket

bulk-ssh

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-ssh

Execute commands on multiple remote servers using SSH

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

#BSSH (🐝SSH)

Bulk SSH is a CLI for executing remote commands via SSH on multiple servers.

Usage: bssh [options] "<command to execute remotely>"

OptionsDescription
-V, --versionoutput the version number
-f, --file [filepath]What file contains the SSH commands to run the command with?
-i, --identity [identity_file]The path to your keypair file
-s, --synchronousJust run everything and let results come back in live. More difficult to read results, but more efficient to run commands.
-u, --user [username]The username you wish to use
-h, --helpoutput usage information

Example

In certain circumstances you just want to go directly to a specific docker instance (say to get to a shell within it)

Rather than:

  • ssh -i somekey.key ubuntu@swarmmaster.domain.com
  • sudo docker service ls
  • sudo docker service ps k28s53gd52fd
  • exit
  • ssh -i another.key ubutu@worker3.domain.com
  • sudo docker exec -it 781nd7s5g2s ash

Use BSSH

  • bssh -f ./production-server-list -i somecommon.key -u ubuntu "sudo docker ps"
  • ssh -i somecommon.key ubuntu@worker3.domain.com
  • sudo docker exec -it 781nd7s5g2s ash

If you have an SSH config set up it is even simpler as you can cut out the key and user:

  • bssh -f ./production-server-list "sudo docker ps"
  • ssh -i somecommon.key ubuntu@worker3.domain.com
  • sudo docker exec -it 781nd7s5g2s ash

Keywords

bulk

FAQs

Package last updated on 16 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.