Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@namari

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

More than 1 year has passed since last update.

環境

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
}
1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
namari
プログラマーとしてぴよこです。でも頑張ります。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?