ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
unix:ssh:sshs

sshs

binary install

$ w3m -dump https://github.com/quantumsheep/sshs/releases/latest | grep Assets -A 20
Assets

14

  • sshs-darwin-amd64 5.93 MB
  • sshs-darwin-amd64.sha256 88 Bytes
  • sshs-darwin-arm64 6.14 MB
  • sshs-darwin-arm64.sha256 88 Bytes
  • sshs-linux-amd64 5.55 MB
  • sshs-linux-amd64.sha256 87 Bytes
  • sshs-linux-arm64 5.56 MB
  • sshs-linux-arm64.sha256 87 Bytes
  • sshs-windows-386.exe 5.05 MB
  • sshs-windows-386.exe.sha256 91 Bytes
  • sshs-windows-amd64.exe 5.59 MB
  • sshs-windows-amd64.exe.sha256 93 Bytes
  • Source code (zip)
  • Source code (tar.gz)

  •  © 2022 GitHub, Inc.

dl

$ wget https://github.com/quantumsheep/sshs/releases/download/1.5.0/sshs-linux-amd64 \
https://github.com/quantumsheep/sshs/releases/download/1.5.0/sshs-linux-amd64.sha256

hash確認

$ sha256sum -c ./sshs-linux-amd64.sha256
sha256sum: bin/sshs-linux-amd64: No such file or directory
bin/sshs-linux-amd64: FAILED open or read
sha256sum: WARNING: 1 listed file could not be read
$ cat ./sshs-linux-amd64.sha256
c5ace124e351206f83db91d616243bf1f6fc9b67a96feabd5a603027637a5cc3  bin/sshs-linux-amd64
$ sha256sum ./sshs-linux-amd64
c5ace124e351206f83db91d616243bf1f6fc9b67a96feabd5a603027637a5cc3  ./sshs-linux-amd64

install

$ install -m 755 ./sshs-linux-amd64 ~/bin/sshs

source install

$ go get github.com/quantumsheep/sshs
$ ~/go/bin/sshs --help
ssh clients manager

Usage:
  sshs [flags]

Flags:
  -c, --config string   SSH config file (default "~/.ssh/config")
  -h, --help            help for sshs
  -p, --proxy           Display full ProxyCommand
  -s, --search string   Host search filter

usage

$ sshs -h
ssh clients manager

Usage:
  sshs [flags]

Flags:
  -c, --config string   SSH config file (default "~/.ssh/config")
  -h, --help            help for sshs
  -p, --proxy           Display full ProxyCommand
  -s, --search string   Host search filter
  -v, --version         version for sshs

error

OpenSSHのsshdコマンドのテストや実際の動きでは問題ない設定ファイルだが,sshsではエラーになってしまう

$ /sbin/sshd -t ~/.ssh/config
Extra argument /home/matoken/.ssh/config. 
$ /sbin/sshd -T ~/.ssh/config
Extra argument /home/matoken/.ssh/config.

configのHostの前に設定がある

Host * を先頭にした

$ ./sshs                       
2022/02/10 22:49:50 /home/matoken/.ssh/config:52: config variable before Host variable 

タブがあるとエラーになる

スペースに置き換えた

$ ./sshs
2022/02/10 22:50:33 invalid pattern: "VisualHostKey\t" at pos 59

コメント

コメントを入力. Wiki文法が有効です:
 __  __   ___  ______ ______  _      __
 \ \/ /  / _ \/_  __//_  __/ | | /| / /
  \  /  / ___/ / /    / /    | |/ |/ / 
  /_/  /_/    /_/    /_/     |__/|__/
 
unix/ssh/sshs.txt · 最終更新: 2022/02/10 23:59 by matoken