how do i avoid this rsync issue


comet424

Recommended Posts

You used the wrong "cancel" Ctrl+Z - this puts the task in the background suspended.

You should start over (by erasing /root/.ssh on both machines) and do things slowly step by step.

Worry about the backup/reinstall after you know its working and can reproduce it properly.

Also, you're screen shots are almost impossible to read.

 

All the info you should be available in this post of mine (as well as various bits and pieces in the whole topic.

 

Link to comment

@ken-ji I don't think I can make the screen shots bigger   you just gotta zoom them in.. that's using  windows snipping tool.

 

 what command cancels  if not ctrl Z 

and I already followed that link..  remember I told you I did those steps and it failed reason for all the screen shots.. I sent also the other link in that link too I followed those steps..

I did those steps minus the scp as I just did windows copy instead..  and then tells me cant establish   the only thing you added that link didn't offer was that keyscan you mentioned... 

 

but ill try deleting the .ssh  and fromtower and sshroot and ill redo screen shots for ya

 

Link to comment

do I need to format both unraids and start over... I don't really wanna cuz I have plugins and docker apps and vms  but if I have to.. if there is a glitch some how I guess I will as I cant figure this out.. I delete the .ssh   I delete the sshroots on the usbs  I start over  I get the CP and CHMOD back when I do a reboot  it works again... so I dunno whats going on  I no expert.. as unraid im coming close to a year of first time using  it

Link to comment

 

Can you list any plugins you have installed.

and keep the generated key named /root/.ssh/id_rsa if you rename it you'll need some additional commandline options and config files

Don't bother with a different user as they won't have the correct permissions (file access/creation will be impaired)

 

start fresh, delete /root/.ssh on both servers with

rm -frv /root/.ssh

delete the sshroot on the usb, remove the lines in the go file

 

Reboot the servers to be sure.

 

On tower:

# ssh-keygen -t rsa -b 2048 -f /boot/config/ssh/tower_root
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): [press enter here]
Enter same passphrase again: [press enter here]
# scp /boot/config/ssh/tower_root.pub mitchsserver:/boot/config/ssh

The SCP should prompt for the root password. Make sure you set one in the GUI.

 

Repeat for mitchsserver:

# ssh-keygen -t rsa -b 2048 -f /boot/config/ssh/mitchsserver_root
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase): [press enter here]
Enter same passphrase again: [press enter here]
# scp /boot/config/ssh/mitchsserver_root.pub tower:/boot/config/ssh

Again here.

 

Then add this to tower go file

mkdir -p /root/.ssh
cp /boot/config/ssh/tower_key /root/.ssh/id_rsa
cat /boot/config/ssh/mitchsserver_key.pub > /root/.ssh/authorized_keys
chmod g-rwx,o-rwx -R /root/.ssh

and the mitchsserver go file

mkdir -p /root/.ssh
cp /boot/config/ssh/tower_key /root/.ssh/id_rsa
cat /boot/config/ssh/mitchsserver_key.pub > /root/.ssh/authorized_keys
chmod g-rwx,o-rwx -R /root/.ssh

Then on each server, run the same lines you inserted into the go file

 

then test it by running on tower

root@tower:~# ssh mitchsserver echo Hello
Hello
root@tower:~# 
root@mitchsserver:~# ssh tower echo Hello
Hello
root@mitchsserver:~# 

Once you get this far, problem solved.

Link to comment

@ken-ji  didn't work yet  

I gave root password of mike  didn't work   and I found web browser  it didn't like me changing the password as I changed it.. then web broswers asked me for root password  and I had to do it 3 times before it let me back in.. like unraid not saving password right

but here is the steps you told me haven't made it farther yet

 

unraida13.JPG

Link to comment

I think you're approaching this in a complicated way. The first step should be - ensure you can login without a password from one server to another.

I'd definitely suggest not using a passphrase when you create the key(s) - at least until you can reliably ssh from one server to another.

When that's working without any problems, then add on the additional complexities like rsync or scp but for now those are confusing the issue.

Del

Link to comment

Yes so start over:

delete /root/.ssh on both servers with

rm -frv /root/.ssh

delete the sshroot on the usb, remove the lines in the go file

 

Reboot the servers to be sure.

 

On tower:

# ssh root@mitchsserver

This will definitely prompt about the unknown key (like this)

The authenticity of host '192.168.71.1 (192.168.71.1)' can't be established.
RSA key fingerprint is SHA256:DsrQk63wK2wX+GZRvT8Z2eP3C/W3qk9jb4z5cQQ4nyg.
Are you sure you want to continue connecting (yes/no)?

Just type yes

If there was no root password on mitchsserver set via the Web GUI, this will let you in right a away, else it will prompt you for the password which should let you in right away.

 

Repeat for mitchsserver.

 

Let's solve this problem at the core first. Once the SSH is stable and works without issue, we can start adding keys and rsync from a known position.

Edited by ken-ji
Link to comment

@Delarius @ken-ji  I will try again but the image before you 2 replied

showed that I had deleted  sshroot  ssh .ssh I did the rm -vf  

it shows I ran the Keygen  and pass phrase was just enter..    I did the type "yes"  

like I mentioned   root has a password of mike...  you see I type   the password mike 3 times for root and it kicks me out it doesn't accept Root 

you see I used a user account called mike... with a password of mike... it allows that and right away connection closed...  so I do not know how you expect me to fix the login  

but ill do the steps again @ken-ji said but it will not allow me either direction

 

and the 2 go files I already rem'd out

Edited by comet424
Link to comment

I understand, but don't use a different user. IIRC non root users cannot login over ssh unless some adjustments are made. Did you use the ssh plugin to allow the mike user to login? I don't use the ssh plugin myself, so all the debugging that I know is based on stock unraid

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.