vagrantのファイルをSublime Textで編集・同期をしたい
https://qiita.com/kt_flcl/items/50504b125e2c4eaee23d
上記URLを利用して、mac OS High Sierra(ver.10)上に以下の仮想環境を構築しました。
・Vagrant
・CentOS7
・Rails(5.2.1)
・MySQL(8.0)
その後、上記の仮想環境上で作成したrailsのプロジェクト(rails new)をsublime text上で編集をしたく、以下のURLを参考に、sftp-config.jsonファイルを修正したのですが、即刻failure(connection timeout)と出てしまいます。
https://qiita.com/ttaka66/items/37660c1840b172342cb2
初めての質問となり記載内容が甘いところあるかもしれませんが、
こちら解決方法について、ご教示の程お願い申し上げます。
発生している問題・エラーメッセージ
ポップアップで、即時、failure(connection timeout)と出ます
該当のソースコード
{ // The tab key will cycle through the settings when first created // Visit http://wbond.net/sublime_packages/sftp/settings for help // sftp, ftp or ftps "type": "sftp", "save_before_upload": true, "upload_on_save": true, "sync_down_on_open": false, "sync_skip_deletes": false, "sync_same_age": true, "confirm_downloads": false, "confirm_sync": true, "confirm_overwrite_newer": false, "host": "hoge-host", "user": "hoge-user", "password": "hoge-password", "port": "hoge-port", "remote_path": "/hoge/hoge", "ignore_regexes": [ "\.sublime-(project|workspace)", "sftp-config(-alt\d?)?\.json", "sftp-settings\.json", "/venv/", "\.svn/", "\.hg/", "\.git/", "\.bzr", "_darcs", "CVS", "\.DS_Store", "Thumbs\.db", "desktop\.ini" ], "file_permissions": "777", "dir_permissions": "777", //"extra_list_connections": 0, "connect_timeout": 30, //"keepalive": 120, //"ftp_passive_mode": true, //"ftp_obey_passive_host": false, //"ssh_key_file": "~/.ssh/id_rsa", //"sftp_flags": ["-F", "/path/to/ssh_config"], //"preserve_modification_times": false, //"remote_time_offset_in_hours": 0, //"remote_encoding": "utf-8", //"remote_locale": "C", //"allow_config_upload": false, }
試したこと
- host/port番号は、ssh-configで出てきた値を入れています。(port番号は4桁、hostは127から始まるもの)
- また、host名をvagrantfile内に記載のipアドレス(192から始まるもの)で試すと、数十秒程時間がたった後に、connection timeoutが出ます。
- remote_pathは、同期したいディレクトリにて、pwdコマンドで出たpathを入力しています。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/09/16 13:53 編集
退会済みユーザー
2018/09/16 14:17 編集
2018/09/16 14:27