Transfer and download files or folders using SSH?

Her er din tekst rettet og gjort mere klar:

Hey Guys,

I need some help with SSH. I’ve got a 3D printer, and it’s a bit more advanced than I’m used to.
Questions:

How do you transfer and download files or folders to and from a remote machine using SSH?

ZSH-related question:
I use ZSH. How can I use my ZSH shell and settings on the remote machine?

I assume I need to install ZSH on the remote machine and copy my .zshrc, aliases, etc., over. But is there a way to use my settings on the remote machine without copying them directly?

You use the command scp

For example:

scp /path/to/local/file username@ipaddress:/path/to/remote/file

Also, most GUI clients support transfers over ssh. It is commonly referred to as sftp.

2 Likes

Okay, thanks.

Is there a way to set it up so that files always download to the same location on my local machine? This way, I wouldn’t have to specify the path every time

If you use . for the path it will use the current directory.

But generally, it would be easiest to call a script that already had the paths you want.

Alternatively, if you are trying to sync the directories, you could use rsync or lftp depending on your exact need.

Thanks, I’ll try to figure it out.

Regarding ZSH: does it need to be installed on the remote machine? I know it seems logical, but for people who use SSH regularly, there must be a way to use their own shell without installing it on every remote machine.

As far as I know, it needs to be installed on the remote machine if you want to login to the remote machine and use zsh over there.

xxh

1 Like

hey welcome … your post was very suspicious looking for the spam detector :wink:

but i got it…

Hey,

Thanks! I’ll take a closer look at it or, install zhs on the remote machine…

I think I now have everything I need regarding SSH and ZSH. This thread can be closed.

Thanks!

1 Like

No problem, thank you for having me…

That would depend on the slicer as well as the printer firmware you’re using.

I’ve used the (Prusa/Super)Slicer for the most part and print jobs can be send automatically to the printer, mine was hooked up via LAN and I’m using Mainsail as the printers browser-based UI. Which is running Clipper as a firmware, An Raspberry Pi 3b with a headless DietPi installation controls the whole printer. No manual file transfers via microSD or so. Mainsail is accessible via Desktop as well as Mobile web browsing.

The PrusaSlicer supports https for sending jobs to the printer, SuperSlicer supports SSL certificates additionally. I guess the OrcaSlicer does include the same functionalites, as it’s also a fork of Slic3r in the end. Even if it is a fork of Bambu Studio which itself is a fork of PrusaSlicer which is a fork of Slic3r in the end.

But I have to say that I’m currently not up to date, as my 3D printer build has been a covid project to me. Mostly for the building part and optimizing it mechanically.

1 Like

Hey, thanks.

Transferring files to the printer is simple enough—I’ve done it through Mainsail. However, the printer occasionally needs calibration, and Klipper generates graphs (saved as PNGs) for fine-tuning. I’d like an easier way to transfer those files and my config files between my local and remote machines to keep everything synced.

I’m thinking of creating scripts for this and learning more about SSH. I’m using the Kitty terminal, which supports displaying images. With the right setup on the remote machine, it should work.

I might also try installing the Ranger file manager on the remote machine—it could be useful.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.