前提・実現したいこと
GCPのVMインスタンスにAtomからRemote-SFTPパッケージを使ってアクセスし、ファイルを操作したい。
しかし、Config fileの設定がうまくできていないのかアクセス時にエラーが発生。
発生している問題・エラーメッセージ
Remote FTP: Could not read .ftpconfig file. Error: EISDIR: illegal operation on a directory, read
該当のソースコード
STEP 1: ssh-keygen -t rsa -f ~/.ssh/Key_A -C hogehoge_instance
試したこと
-
STEP1: ローカル環境で秘密鍵公開鍵を作成し./ssh 配下に保存.-Cでインスタンス名をコメントに追加(Key_Aとする)
-
STEP2: VMインスタンスのメタデータに公開鍵(Key_A.pub)を追加
-
STEP3: AtomのRemote-FTP側でConfigを作成し下記ディレクトリに保存
local
-Document
|-work_directory
|_.ftpconfig
ftpconfig
{
"protocol": "sftp",
"host": "インスタンスのIPアドレス",
"port": 22,
"user": "hogehoge_instance",
"pass": "",
"promptForPass": false,
"remote": "/",
"local": "",
"agent": "",
"privatekey": "/Users/hogehoge/.ssh/Key_A", (local path)
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": false,
"keyboardInteractiveForPass": false,
"remoteCommand": "",
"remoteShell": "",
"watch": [],
"watchTimeout": 500
}
- STEP4: Remote-FTPをAtomで起動しConnect->Error
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/04/21 15:14