Go to Home

README - Setup-SSHConfig.ps1

Description

このスクリプトは、PowerShellおよびCMD環境で動作する対話型のSSH設定マネージャーです。 ユーザーからの入力値を厳格にバリデーションし、~/.ssh/configファイルを安全に編集します。 主な特徴

  1. SSH設定ファイルの自動バックアップ
  2. ホストエイリアスやユーザー名、ポート番号等の入力値検証
  3. SSH公開鍵認証の自動設定・鍵生成・リモートサーバーへのデプロイ
  4. サーバー生存監視(KeepAlive)や高度なSSHオプションの対話的設定
  5. 既存設定の上書き防止や復元機能

Usage

以下のコマンドを Powershell から貼り付けて実行してください。

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://code.2pc.nexus/share/Setup-SSHConfig.ps1 | iex"

View Code

View the code here.

Information

Is Admin or Root required?

No.
No admin/root permission required