2017-08-25 10 views
0

私はEC2でファイルをリモートで編集しようとしていますが、私はconfig.jsonをセットアップするのに少し時間を費やしましたが、まだタイムアウトエラーがあります。 私は誰も同じ問題 を持って念のために、私は、configファイルMAC OS インストールUbuntuのEC2でSublime3 SFTPを使用

を使用しています、私はそれを把握されたMACを使用し、Iすでにchmod 400

ファイル .pemから
{ 
"type": "sftp", 
"sync_down_on_open": true, 
"host": "xxx.xx.xx.xxx", 
"user": "ubuntu", 
"remote_path": "/home/ubuntu/", 
"connect_timeout": 30, 
"sftp_flags": ["-o IdentityFile=/Users/kevinzhang/Desktop/zhang435_ec2.pem"], 
} 

答えて

0

ていますされているのは

{ 
// 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": true, 
"sync_skip_deletes": false, 
"sync_same_age": true, 
"confirm_downloads": false, 
"confirm_sync": true, 
"confirm_overwrite_newer": false, 

"host": "xxxx.compute.amazonaws.com", 
"user": "ubuntu", 
//"password": "password", 
"port": "22", 

"remote_path": "/home/ubuntu/", 
"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": "664", 
//"dir_permissions": "775", 

//"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": ["-o IdentityFile=<YOUR.PEM FILE path>"], 

//"preserve_modification_times": false, 
//"remote_time_offset_in_hours": 0, 
//"remote_encoding": "utf-8", 
//"remote_locale": "C", 
//"allow_config_upload": false, 

}


のように見えます

あなたはアクセス許可の問題がある場合:

chmod -R 0777 /home/ubuntu/YOURFILE/ 

これをただ読んで、あなたはあなたのために働いていない上記の場合は、新規ユーザーを作成することも、すべてのユーザー

のためにライトイネーブル: https://habd.as/sftp-to-ubuntu-server-sublime-text/ 私はしないでくださいこれが違うかどうかを知っているが、一度新しいユーザーを作成すると両方のユーザーのために私のために働くように見える

関連する問題