LoginSignup
0
1

More than 3 years have passed since last update.

Atomの「Remote FTP」を使用してSFTP(秘密鍵あり)を接続する

Last updated at Posted at 2019-10-07

環境

Mac

接続手順

Atomの『Remote FTP』を使用して秘密鍵を利用してSFTP接続する。

01.パッケージの[Remote FTP]を選択。
02.[Create SFTP Config File]を選択。
03.[.ftpconfig]が作成される
04.下記コードに書き換える( {{ }} で囲んでいる箇所は要変更 )
05.PCの[/Users/xxxx/.ssh]に秘密鍵を入れる
※ 鍵が「.pem」でなければ「Fille Zille」などを使用して分解させる(個人的な方法)
06.Atomで[Remote FTP] > [Toggle]で接続確認
07.接続完了

.ftpconfig
{
    "protocol": "sftp",
    "host": "{{ ホスト(123.123.123.123 ...など) }}",
    "port": {{ ポート番号 }},
    "user": "{{ ユーザー名 }}",
    "pass": "{{ パスワード }}",
    "promptForPass": false,
    "remote": "{{ 接続先のパス(/var/www/...など) }}",
    "agent": "",
    "privatekey": "{{ 秘密鍵がある場合(/Users/xxxx/.ssh/xxx/id_rsa.pem) }}",
    "passphrase": "{{ 秘密鍵のパスワード }}",
    "hosthash": "",
    "ignorehost": true,
    "connTimeout": 10000,
    "keepalive": 10000,
    "keyboardInteractive": false
}
0
1
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
0
1