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?

社内サーバにVS Code remote ssh する手順

Last updated at Posted at 2024-02-08
  1. ローカルPCで秘密鍵を作成
    1. ex) ssh-keygen -t rsa -b 4096
    2. ファイル名は適当につける
      1. 今回は shanai-server とする
  2. .ssh/config にホストを追加
    1. ex)
    Host shanai-server
      HostName 192.168.2.10
      ForwardX11 yes
      User hoge
      IdentityFile ~/.ssh/shanai-server_rsa
    
  3. 社内サーバの.sshにauthorized_keysを追加
    1. ローカルで作成した公開鍵をコピーして、authorized_keys に追記
  4. VS Code の Remote Explorer に .ssh/config の中身が表示されるので、そこから接続する
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?