0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ProxmoxでCT作った後に内ファイルをVSCodeで編集したい

Posted at

前提

  • 今回はクライアント側はWindows11Homeを想定

クライアント側(Windows側設定)

sshキー作成

  • image.png
    image.png
  • 両方作っておく

ssh秘密鍵のパーミッション設定(他の人から見えなくする)

image.png

  • ファイル→プロパティ
    image.png
  • セキュリティタブ→詳細設定
  • 自分以外の権限を削除、もしくは「継承の無効化」

サーバーへsshできるか確認

image.png
image.png

  • OK

サーバー側のauthorized_keysに公開鍵を登録

(省略)

VScode側設定

でRemote-ssh拡張機能をインストールする

image.png

Remote-ssh機能の起動

image.png

  • 「コマンドの表示と実行」
    image.png
  • Remote-ssh関連を探し、実行
    image.png
  • 「ユーザー名@ホスト名(IPアドレス)」
    image.png
  • configを適宜編集しておく

接続

image.png

  • 途中の選択肢は適宜選ぶ
  • これでcopilot経由でLinuxサーバー側ファイルの編集ができる
  • =すてき
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?