SCP for coder instance?

I am a new coder user, just trying to get the OSS version set up for our org to try it out. One thing that I would like to do is to SCP a file to/from the coder instance. I know there is the coder ssh tool in the CLI, but this of course does not quite accomplish what I'd like - to be able to contact my coder instance via the default scp and ssh binaries on my machine. What is the best approach here?
5 Replies
Codercord
Codercord5d ago
<#1363697574141493308>
Category
Help needed
Product
Coder (v2)
Platform
macOS
Logs
Please post any relevant logs/error messages.
Alex
AlexOP5d ago
The goal here is to eventually write a script to SCP the file out once a day or so
zounce
zounce5d ago
coder config-ssh should add a coder.* block to your SSH config, which will let you do exactly that i.e scp coder.workspace:/path/to/file /path/to/file
Alex
AlexOP5d ago
Beautiful! Thank you!
Phorcys
Phorcys4d ago
@Alex you can also set up the File Browser module it will allow you to upload/download files through the web UI https://registry.coder.com/modules/filebrowser

Did you find this page helpful?