fix: SFTP paths on Windows — double-slash for remote, remove broken MSYS env
- Remote paths in upload/download require // prefix on Windows/Git Bash - Removed useless MSYS_NO_PATHCONV from Python (must be shell-level) - Removed broken bash wrapper - Updated skill docs with // path rule and examples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,13 +48,15 @@ python ~/.server-connections/ssh.py ALIAS --no-sudo "command"
|
||||
|
||||
### Загрузить файл на сервер
|
||||
```bash
|
||||
python ~/.server-connections/ssh.py ALIAS --upload /local/path /remote/path
|
||||
python ~/.server-connections/ssh.py ALIAS --upload "D:/path/local/file" //remote/path/file
|
||||
```
|
||||
**ВАЖНО (Windows/Git Bash):** remote path ОБЯЗАТЕЛЬНО с двойным слешем `//home/...`, `//tmp/...`. Одинарный `/` будет сконвертирован Git Bash в Windows-путь и сломает SFTP.
|
||||
|
||||
### Скачать файл с сервера
|
||||
```bash
|
||||
python ~/.server-connections/ssh.py ALIAS --download /remote/path /local/path
|
||||
python ~/.server-connections/ssh.py ALIAS --download //remote/path/file "D:/path/local/file"
|
||||
```
|
||||
Remote path тоже с `//`.
|
||||
|
||||
### Установить SSH-ключ на сервер
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user