GithubHelp home page GithubHelp logo

ssh-ito-denwa's Introduction

ssh-ito-denwa

ssh-port-forward を永続的に稼働させるためのスクリプト

Usage

インストール

debパッケージのインストール (現在、UbuntuなどDebian系 ディストリビューションのみサポートしています)

# バージョン番号の部分は、適宜読み替えてください
sudo dpkg -i ./ssh-ito-denwa_x.x.x.deb

アンインストール

sudo dpkg -r ssh-ito-denwa

設定

/etc/ssh-ito-denwa.conf に設定ファイルがあります。

  • 接続先ホスト、転送先ポートなどの設定を行ってください。
  • SSH接続設定については、この設定ファイルで行いません。 事前に root ユーザで ~/.ssh/config によって鍵認証の設定を完了させておく必要があります。
# 設定ファイルを編集
sudo vi /etc/ssh-ito-denwa.conf

サービスの制御

systemd サービスとしてインストールされますので、 systemctl コマンドで操作してください。

# 起動
systemctl start ssh-ito-denwa

# 起動状態確認
systemctl status ssh-ito-denwa

# 停止
systemctl stop ssh-ito-denwa

エラー発生時は、syslogにログが出力されています。 適宜参照してください。

# ログを確認
less /var/log/syslog

OS起動時にサービスを自動起動させるには、以下のようにします。 (systemdの一般的な操作方法です)

# OS起動時のサービス自動起動を有効化
systemctl enable ssh-ito-denwa

# OS起動時のサービス自動起動を無効化
systemctl disable ssh-ito-denwa

パッケージビルド

cd package
sudo ./make_deb.sh

# 成果物の確認。ssh-ito-denwa_x.x.x.deb ファイルが出来上がります。
ls -l

ssh-ito-denwa's People

Contributors

lobin-z0x50 avatar haruyan-hopemucci avatar

Watchers

 avatar  avatar TomoProg avatar  avatar  avatar  avatar

ssh-ito-denwa's Issues

リトライ頻度を徐々に下げられないか

運用中、長時間にわたって接続できない状況が発生した際に、30秒おきぐらいに接続を繰り返すため、

  • ログが多すぎて困る
  • 負荷が上がってしまう
    リトライ頻度を徐々に下げる、みたいなことはできないのか?
スクリーンショット 2024-01-22 15 02 50

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.