LoginSignup
4
4

More than 5 years have passed since last update.

サーバ側のファイルをSublimeTextで編集する

Last updated at Posted at 2016-07-17

環境

Mac OSX ElCapitan
Raspberry Pi2 raspbian

クライアント側のSublimeTextの設定

Sublime Textの「Package Contral: Install Package」で「rsub」をインストール

サーバ側の設定

以下のコマンドを入力
$ sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate

$ sudo chmod +x /usr/local/bin/rsub

クライアント側のconfigファイルの設定

~/.ssh/configの接続先の設定項目の最後に以下を追加
RemoteForward 52698 localhost:52698

rsubでファイルを開く

クライアント側でSublime Textを起動しておいて
接続先のコンソール上で
$ rsub ファイル名
と入力すると起動しているSublime Textでファイルが開く

4
4
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
4
4