LoginSignup
1
5

More than 5 years have passed since last update.

[Atom][Remote-FTP]Vagrant に接続できなくなった。

Last updated at Posted at 2016-07-20

突然Vagrant と接続できなくなった。

それは、突然やってきた。
何もしていない。
何の設定も変えていない。
だけど、Atom の Remote-FTP で Vagrant 上のファイルを操作できなくなった。
なんか解決したので、超ニッチな問題だが書いておく。

解決策

"keyboardInteractive": true

.ftpconfig に追記する。
これだけ。
このシンプルな解決策で、僕の Atom が復活した。

参考

このissue の真ん中付近に解決策が載っていた。

せっかくなので

せっかくなので、keyboard-Interactive について調べてみた。
↓ 答え
http://e-words.jp/w/%E3%83%81%E3%83%A3%E3%83%AC%E3%83%B3%E3%82%B8-%E3%83%AC%E3%82%B9%E3%83%9D%E3%83%B3%E3%82%B9%E8%AA%8D%E8%A8%BC.html

どうやら、より安全に通信するための仕組みらしい。
勉強になった。

.ftpconfig

どうせだから、Remote-Ftpの使い方も書いておく。

  • Atom に Remote-Ftp というパッケージをインストールする。
  • その後、適当にフォルダを作る。
  • 素のatom を開く。
  • command-o で、さっき適当に作ったフォルダを開く
  • メニューバーのPackage Remote-Ftp を開く
  • create SFTP config file を選択
  • 設定ファイルを書く。
  • メニューバーの Package->Remote-Ftp を選択
  • connect ボタンを押す

以上!
実物が見たい方は、
http://rfs.jp/sb/atom-github/atom_package_remote_ftp.html
に詳しく書かれています!

ちなみに、僕の設定ファイルはこんな感じ!

{
    "protocol": "sftp",
    "host": "10.0.42.12",
    "port": 22,
    "user": "vagrant",
    "pass": "vagrant",
    "promptForPass": false,
    "remote": "/var/www/html/saipan/",
    "secure": false,
    "secureOptions": null,
    "connTimeout": 10000,
    "pasvTimeout": 10000,
    "keepalive": 10000,
    "watch": [],
    "keyboardInteractive": true
}

watch ってなんなんですかね?

============================
追記
時々disconnect される。
何なんだこの現象はーーーーーーーーー!
なんとなくMac を再起動してみたけど、原因はそんなことじゃないらしい。
何なんだこの現象はーーーー

1
5
3

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
5