1
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?

More than 5 years have passed since last update.

VScodeでRemote Containersを使いssh接続で計算機につなぐ

1
Last updated at Posted at 2019-07-03

VScode でRemote Containersを使いssh接続で計算機につなぐ

VScodeでsshが使えるようになった

ログイン計算機はパスワード認証の場合
VScodeでサーバーへの接続に必要なものは

  • VScode
  • Remote Containers (VScode )

VScode をインストールしたら、
横にある四角いアイコンExtensionsからRemote-containersをインストール
横のPCアイコンをおし、CONNECTIONを新たに作る
歯車マークconfigureを押すと.ssh/config,settingがでてくる
settingには.ssh/configのパスを入れてやる

.ssh/configがパスワード認証では書かなくてはいけないことが普通より多く、

Host 
HostName  
User 
ForwardX11 yes

    ControlMaster auto
    ControlPath  ~/.ssh/sockets/%r@%h-%p
    ControlPersist  600

と下三行を入れてやらねばならない
(--Macのみ,windowsは下三行を書かない)

Terminalで計算機に入った状態で

VScodeで接続

英語の説明ー本家

1
0
1

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
1
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?