Skip to content

Cross-Platform Command Line Interface for editing ssh config file

License

Notifications You must be signed in to change notification settings

quag-cactus/ssh-conf-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssh-conf-cli

Cross-Platform Command Line Interface for editing ssh config file.

Installation

  1. You can download the binary file from release page

  2. Unzip the file (ssh-conf-cli_linux_amd64_<versions>.zip) and put it in your $PATH directory as needed.

    • For linux
      $ unzip ssh-conf-cli_linux_amd64.zip -d ~/.local/bin
    • For Windows Unzip the file (ssh-conf-cli_win_amd64_<versions>.zip) using your favorite unzip tool and put the file ssh-conf-cli.exe in your $PATH directory.

Usage

To get the version:

$ ssh-conf-cli version

To Edit value of any targeted-host:

$ ssh-conf-cli edit -T [target-pattern] <subcommand> 

For example, to edit the value of HostName configlated for host remote-machine:

$ ssh-conf-cli edit -T remote-machine hostName -n 0.0.0.0

Source build

To make binary file for your platform:

go build -ldflags "-s -w -X github.com/quag-cactus/ssh-conf-cli/cmd.version=<VERSION_STRING>" -trimpath ./...

About

Cross-Platform Command Line Interface for editing ssh config file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages