picosh / pico

hacker labs - open source and managed web services leveraging SSH
https://pico.sh
MIT License
741 stars 25 forks source link

Added support for sshfs #134

Closed antoniomika closed 1 month ago

antoniomika commented 1 month ago

Nice! The only thing that doesn't work:

sftp -P 2222 localhost
> cp file.md .
> Server does not support copy-data extension

sftp itself doesn't have support for cp within the protocol. What you want is to cp over using sshfs. You do that by doing sshfs -p 2222 localhost:/project /tmp/test, where /tmp/test is an empty directory that exists. Then you can cp files into /tmp/test. You could also mount the root / instead of /project. Which would allow you to see projects and create a new one with mkdir.