Uploading to EC2 CentOS instance using SublimeText SFTP

后端 未结 2 1987

I created an EC2 CentOS instance to host my php web app development version, I\'m using Sublime Text as an IDE, and SFTP plugin to upload files directly then test.

Befor

相关标签:
2条回答
  • 2021-02-04 13:06

    You're close...the following works for CentOS / RHEL on EC2

    {
        "type": "sftp",
        "sync_down_on_open": true,
        "host": "<your ec2 instance hostname>",
        "user": "<your username>",
        "remote_path": "<your remote path>",
        "connect_timeout": 30,
        "sftp_flags": ["-o IdentityFile=~<path to .pem file>"]
    }
    

    You actually don't need to set ssh_key_file": "/home/USER/USER-EC-Virginia.pem,

    0 讨论(0)
  • 2021-02-04 13:06

    Just to add to One Bad Panda's comment, Please dont use these commands in Windows 7 to point to key file

    "sftp_flags": ["-i /C/cygwin/home/Ehsan/.ssh/ekia_ec2.pem"]
    
    "sftp_flags": ["-o IdentityFile=/C/cygwin/home/Ehsan/.ssh/ekia_ec2.pem"]
    

    instead use

    "ssh_key_file": "C:/.../yourkey.ppk"
    
    0 讨论(0)
提交回复
热议问题