Skip to content

Instantly share code, notes, and snippets.

@templateaholic10
Last active August 27, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save templateaholic10/02e52cb3fa042d1b3cfa96347bc05412 to your computer and use it in GitHub Desktop.
Save templateaholic10/02e52cb3fa042d1b3cfa96347bc05412 to your computer and use it in GitHub Desktop.
SSH接続の設定

エージェント転送

多段SSHにおいて踏み台サーバに秘密鍵を転送するよう設定する. ページ下のクライアント設定の上接続すると自動で設定されるため,不要.

ssh-add -l # 登録状態を確認する
ssh-add ~/.ssh/id_rsa # 認証エージェントに秘密鍵を登録する
ssh-add -l # 再び登録状態を確認する

サーバ設定

ローカルネットワーク接続ならUbuntu 16.04の起動時に無線lan接続するによるIPアドレス固定で十分.

クライアント設定

/etc/ssh/ssh_config < ~/.ssh/config < コマンドラインオプション.

Host *
        User [username]
        HostKeyAlgorithms +ssh-dss
        ForwardAgent yes
        AddKeysToAgent yes
        UseKeyChain yes

Host [hostname alias]
        HostName [hostname|IP]

Cyberduck

FTPクライアントだがSFTP通信も可能(SCP通信ではない). 公式サイトからダウンロードする.

  • SSHサーバをブックマークすることでダブルクリックで接続できる.
  • 「環境設定>外部エディタ」を設定するとよい.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment