Group Group Group Group Group Group Group Group Group

Need a little help with this, command line

Writing a script to backup my server. I have the ssh key made, I have the file system figured out on the server and the proper rsync command.

here is the a pic of the command line with me connected to the server

here is the script I want to use I think

#!/bin/bash

Default port

rsync -avz -e ssh

Non standard port

rsync -avz -e “ssh -p 2244”

please help me lol

@lac_ekim Do you still have this issue?

You mentioned that you have “the ssh key made”, I’m assuming that you copied your public key into the ~/.ssh/authorized_keys files at your remote?

What happens when you do a regular ssh? Do you still get prompted for a password or not?

The remote .ssh folder usually contains files similar to the ones below:

~/.ssh$ ls -a
. … authorized_keys id_rsa id_rsa.pub known_hosts

This topic was automatically closed after 166 days. New replies are no longer allowed.