본문 바로가기

기타

[기타] mac(macOS)에 stormssh 설치 및 설정하기

728x90

mac(macOS)에 stormssh 설치 및 설정하기

stormssh 설치

brew install stormssh

storm 사용법

usage: storm [-h] [-v] COMMAND ...

$ storm -h
usage: storm [-h] [-v] COMMAND ...

options:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit

commands:
  COMMAND
    version      prints the working storm(ssh) version.
    add          Adds a new entry to sshconfig.
    clone        Clone an entry to the sshconfig.
    move         Move an entry to the sshconfig.
    edit         Edits the related entry in ssh config.
    update       Enhanced version of the edit command featuring multiple
                     edits using regular expressions to match entries
    delete       Deletes a single host.
    list         Lists all hosts from ssh config.
    search       Searches entries by given search text.
    delete_all   Deletes all hosts from ssh config.
    backup       Backups the main ssh configuration into target file.
    web          Starts the web UI.

storm is a command line tool to manage ssh connections.
get more information at: github.com/emre/storm

storm 버전

$ storm --version
0.7.0

stormssh 설정

호스트 추가

storm add web01 [email protected]:22 --id_file=~/aws/mykey.pem

$ storm add web01 [email protected]:22 --id_file=~/aws/mykey.pem
success  web01 added to your ssh config. you can connect it by typing "ssh web01".

호스트 검색

storm search web

$ storm search web
Listing results for web:
    web01 -> [email protected]:22

storm 명령으로 등록한 웹 서버(web01)에 접근

ssh web01

$ ssh web01
Last login: Wed Oct  6 15:05:20 2021 from ip-10-11-92-92.ap-northeast-2.compute.internal

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/
8 package(s) needed for security, out of 22 available
Run "sudo yum update" to apply all updates.
ec2-user@web01:~$

 

참고사이트

- https://libraries.io/pypi/stormssh

 

728x90