2016. 12. 26. 01:25ㆍDev/ATOM
http://recoveryman.tistory.com/242
Atom에서 가장 많이 사용하는 ftp 패키지인 remote-ftp패키지를 설치한다.
.ftpconfig 파일에서 privatekey 값을 id_rsa(private key)가 있는 위치로 설정해주면 된다.
패스워드 칸은 비워주고 privatekey만 주의해서 설정해 주면된다. $HOME 과 같은 환경변수는 인식하지 못한다.
맥일 경우
"privatekey":"/Users/[사용자명]/.ssh/id_rsa"
윈도우일 경우
"privatekey":"C:/Users/[사용자명]/.ssh/id_rsa"
{
"protocol": "sftp",
"host": "리모트주소", // string - Hostname or IP address of the server. Default: 'localhost'
"port": 22, // integer - Port number of the server. Default: 22
"user": "유저명", // string - Username for authentication. Default: (none)
"pass": "", // string - Password for password-based user authentication. Default: (none)
"promptForPass": false, // boolean - Set to true for enable password/passphrase dialog. This will prevent from using cleartext password/passphrase in this config. Default: false
"remote": "/", // try to use absolute paths starting with /
"agent": "", // string - Path to ssh-agent's UNIX socket for ssh-agent-based user authentication. Windows users: set to 'pageant' for authenticating with Pageant or (actual) path to a cygwin "UNIX socket." Default: (none)
"privatekey": "/Users/mac/.ssh/id_rsa", // string - Path to the private key file (in OpenSSH format). Default: (none)
"passphrase": "", // string - For an encrypted private key, this is the passphrase used to decrypt it. Default: (none)
"hosthash": "", // string - 'md5' or 'sha1'. The host's key is hashed using this method and passed to the hostVerifier function. Default: (none)
"ignorehost": true,
"connTimeout": 10000, // integer - How long (in milliseconds) to wait for the SSH handshake to complete. Default: 10000
"keepalive": 10000, // integer - How often (in milliseconds) to send SSH-level keepalive packets to the server (in a similar way as OpenSSH's ServerAliveInterval config option). Set to 0 to disable. Default: 10000
"watch":[ // array - Paths to files, directories, or glob patterns that are watched and when edited outside of the atom editor are uploaded. Default : []
"./dist/stylesheets/main.css", // reference from the root of the project.
"./dist/stylesheets/",
"./dist/stylesheets/*.css"
],
"watchTimeout":500 // integer - The duration ( in milliseconds ) from when the file was last changed for the upload to begin.
}
'Dev > ATOM' 카테고리의 다른 글
자바스크립트 import에 관하여(에디터 snippet에 관하여) (0) | 2017.08.23 |
---|---|
remote-sync 패키지 (0) | 2017.05.10 |
Atom 추천 Packages (0) | 2016.11.27 |
Atom & Github 연동 (git-control 패키지) (0) | 2016.11.27 |
Atom & Github 연동 (git-plus 패키지) (0) | 2016.11.27 |