확장에서 sftp 설치하기
ssh에 설치 되므로, ssh가 설치되어있어야한다.
[wsl 기준]
sudo apt-get install ssh
sftp.json 파일 설정
ctrl+shift+P 또는 f1을 눌러서 sftp config를 연다.
서버이름, host, username, password, remotepaht 입력한다.
protocol은 sftp, port는 22로 고정이다.
uploadOnSave를 true로 하면 파일을 저장했을 때 서버에 바로 반영된다. (서버에 저장)
{
"name": "서버이름",
"host": "host",
"protocol": "sftp",
"port": 22,
"username": "계정이름",
"password": "계정비밀번호",
"remotePath": "접속할 경로 지정",
"uploadOnSave": false,
"ignore": [".vscode", ".git", ".DS_Store"],
"algorithms": {
"kex": [
"ecdh-sha2-nistp256",
"ecdh-sha2-nistp384",
"ecdh-sha2-nistp521",
"diffie-hellman-group-exchange-sha256",
"diffie-hellman-group14-sha1",
"diffie-hellman-group-exchange-sha1",
"diffie-hellman-group1-sha1"
]
}
}
algorithms은 Error: Handshake failed: no matching key exchange algorithm 에러가 발생하여서 추가해준 부분이라 제외해도 된다.
sftp.List All
ctrl+shift+P 또는 f1을 눌러서 sftp List All을 선택하여 파일을 불러온다.
'Development' 카테고리의 다른 글
VPN과 프록시의 차이 (0) | 2023.01.20 |
---|---|
side effect (0) | 2023.01.13 |
코드 압축해주는 사이트 (0) | 2023.01.12 |
인자/인수 vs 매개 변수 (0) | 2023.01.11 |
Git과 Github의 차이란 (0) | 2022.12.19 |