Skip to content

Instantly share code, notes, and snippets.

@skyer9
Last active April 29, 2018 12:07
Show Gist options
  • Save skyer9/815dd2096941785e5444718281522f70 to your computer and use it in GitHub Desktop.
Save skyer9/815dd2096941785e5444718281522f70 to your computer and use it in GitHub Desktop.
sftp on ec2 with vscode
1. 마켓 플레이스에서 SFTP 다운받기
2. ctrl+shift+p 를 누른 후, sftp: config 를 입력한다.
3. 설정을 아래와 같이 수정한다.
{
"context": "./sftp/searver_a",
"protocol": "sftp",
"host": "13.XXX.42.109",
"username": "ec2-user",
"privateKeyPath": "D:\\aws\\XXXXXX.pem",
"uploadOnSave": true,
"remotePath": "./"
}
4. AWS 콘솔에서 PC 의 22번 포트를 열어준다.
5. ctrl+shift+p 를 누른 후, sftp: list 를 입력한다.
6. 파일을 연다.
7. PC 에서 저장할 때 서버에 반영되는 것을 확인할 수 있다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment