Change the Client SSH port

120 views
Skip to first unread message

Riaan Pretorius

unread,
Feb 10, 2025, 8:21:02 AM2/10/25
to Minarca Data Backup
Good Day, wondering if anyone knows if it possible to sent the client port for SSH to something else?

I was using:
minarca configure -r backup.rplab.xyz -u mark -p 'xxxxx' -n MarkBackup

Then i asked chatgpt and it said this:

minarca-remote-host add backup.rplab.xyz --port 2224 -u mark -p 'xxxxxx'

But minarca-remote-host  does not seem to exist. is there a way? would be very helpful if we can change the SSH port on the client.

Patrik Dufresne

unread,
Feb 10, 2025, 7:30:39 PM2/10/25
to Minarca Data Backup
Hello Riaan,

If you want to configure the client to use a different SSH port, you'll need to update your server settings accordingly. You can find more details in the documentation:

Once the server is properly configured, updating the minarca-remote-host will allow the client to connect using the specified port.

Regarding the command from ChatGPT:

minarca-remote-host add backup.rplab.xyz --port 2224 -u mark -p 'xxxxxx'

This appears to be incorrect (likely an AI hallucination). It's best to refer to the official command-line documentation:

Let me know if you need further clarification.


--
You received this message because you are subscribed to the Google Groups "Minarca Data Backup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minarca+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minarca/62d22c02-4af1-49e3-bf86-6c953a52b2ebn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

IKUS Software

Riaan Pretorius

unread,
Feb 11, 2025, 3:40:42 PM2/11/25
to Minarca Data Backup
Thank you for the advice.

I am using the docker container for testing. I assume I have to add those custom values to /etc/minarca/minarca-server.conf correct?

Patrik Dufresne

unread,
Feb 12, 2025, 7:32:29 AM2/12/25
to min...@googlegroups.com
Hello Riaan,

> I am using the docker container for testing

I’m not sure where you got this Docker container from, but it’s not supported—at least not by me.

A couple of months ago, I started working on a Docker image, so you may have picked up a development version from DockerHub. However, it’s not an official release. According to my roadmap, I plan to distribute a stable Docker image of Minarca around mid-2025.


Riaan Pretorius

unread,
Feb 12, 2025, 7:54:49 AM2/12/25
to Minarca Data Backup
Docker HUB is where i found it - did not want to build a VM just so i can test this - using this one:
ikus060/minarca-server:6.0.0b9.dev14-g327cbdc-debian12


I will assume the answer is no. No worries. I can build my own container then.

Can even share it with you when done won't take long to setup (Dockerfile and Docker-compose.yaml files.
And if you would like to use it - i can either make it build from source or use the official deb packages. I always try and use the official packages - easier to deal with.

Patrik Dufresne

unread,
Feb 12, 2025, 8:06:40 AM2/12/25
to min...@googlegroups.com
Hello Riaan,

> Docker HUB is where i found it - did not want to build a VM just so i can test this - using this one:
> ikus060/minarca-server:6.0.0b9.dev14-g327cbdc-debian12

This is a "dev" version as noted in the tag.

> I will assume the answer is no. No worries. I can build my own container then.
> Can even share it with you when done won't take long to setup (Dockerfile and Docker-compose.yaml files.
> And if you would like to use it - i can either make it build from source or use the official deb packages. I always try and use the official packages - easier to deal with.

Thanks for your offer. 

You may take a look at my development branch in GitLab: https://gitlab.com/ikus-soft/minarca-server/-/tree/patrik-docker

Someone else is also looking into Dockerizing Minarca Server.

Riaan Pretorius

unread,
Feb 18, 2025, 12:54:47 PM2/18/25
to Minarca Data Backup
Hi Patrik,

I got the container running.  I used the deb/apt method to build the container.

I took what was already done and made it a little better.

I also understand now why there was no config file now, I will add auto detect support soon if it finds a configuration file it will automatically add -f <config file.conf> when found. This would help with people that want to manage the container via a configuration or just environment variables or a combination of the 2.  This would also allow for a future setup using Kubernetes and configmaps.

So now I am trying to figure out why i have permission issues and how to fix them. I could possibly incorporate my fixes into the container so it fixes what needs fixing with startup.

This was the magic variable i needed:
MINARCA_MINARCA_REMOTE_HOST

My current issue is this:

Could not open user 'minarca' authorized keys '/backups//.ssh/authorized_keys': Permission denied
Could not open user 'minarca' authorized keys '/backups//.ssh/authorized_keys2': Permission denied

 
Once i get passed that and a successful client connection and a backup test I will look

Also I did see there is a changes in your docker repo: https://gitlab.com/ikus-soft/minarca-server/-/tree/patrik-docker/docker and some of the issues looks related to my issue based on this:

Riaan Pretorius

unread,
Feb 18, 2025, 2:28:36 PM2/18/25
to Minarca Data Backup
I might also have found a bug:

When the authorized_keys is populated multiple entries are created. This appears to happen when ever you connect. so it just keeps populating the authorized_keys forever.
Reply all
Reply to author
Forward
0 new messages