LoginSignup
0
0

More than 1 year has passed since last update.

リモートホストのファイルをvscode上で編集する

Last updated at Posted at 2021-07-11

rmateのインストール

wget -O /usr/bin/rmate https://raw.github.com/aurora/rmate/master/rmate
chmod a+x /usr/bin/rmate
firewall-cmd --add-port=52698/tcp
firewall-cmd --permanent --add-port=52698/tcp
firewall-cmd --reload

sshコンフィグの編集

Host hoge
  HostName hoge.jp //EC2インスタンスのグローバルIP
  User ec2-user
  IdentityFile ~/hoge //秘密鍵が置かれているところ
  IdentitiesOnly yes
  ForwardAgent yes
  RemoteForward 52698 127.0.0.1:52698
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