comet424 Posted February 27, 2019 Author Share Posted February 27, 2019 as for the paraphrase no never enter enter I entered a password twice when I keygen'd Quote Link to comment
comet424 Posted February 27, 2019 Author Share Posted February 27, 2019 soo I entered the password and it started working.. when it shouldn't... when I canceled and redid it and enter the password it failed Quote Link to comment
ken-ji Posted February 28, 2019 Share Posted February 28, 2019 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. Quote Link to comment
comet424 Posted February 28, 2019 Author Share Posted February 28, 2019 @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 Quote Link to comment
ken-ji Posted February 28, 2019 Share Posted February 28, 2019 its Ctrl+C not Z Quote Link to comment
comet424 Posted February 28, 2019 Author Share Posted February 28, 2019 @ken-ji so im having issues... no chmod no cp I copied windows shares but even though I copying to a new folder windows said there was already copy of known_hosts which it couldn't but here are some pics ugh Quote Link to comment
comet424 Posted February 28, 2019 Author Share Posted February 28, 2019 so I tried using the scp and I cant even do that... nothing will allow unraid to unraid to connect... and neither unraid has a password Quote Link to comment
comet424 Posted February 28, 2019 Author Share Posted February 28, 2019 and even if I do a password for Root in gui… entering that password in the scp command line doesn't get accepted Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 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 Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 tried another way @ken-ji but nothing working.... I made user account mike psw mike too Quote Link to comment
ken-ji Posted March 1, 2019 Share Posted March 1, 2019 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. Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 @ken-ji ok give me a bit to try that … here the plugins and do you need the oldplugins folder? this shows both servers Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 (edited) also I noticed I cant get pic from my cell but when I rebooted just before the tower login on the local console says cat: write error :broken pipe unstatd : cant process found cat: write error:broken pipe Edited March 1, 2019 by comet424 Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 @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 Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 if I make user account mike pass mike... it lets me but loose connection right away Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 heres that errors on Tower Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 here is pic of doing mitchsserver side Quote Link to comment
comet424 Posted March 1, 2019 Author Share Posted March 1, 2019 @ken-ji im pretty sure I stumped you as I cant seem to fix this I keep trying differet thigns keep deleting sshroot .ssh ssh doesn't matter still get booted Quote Link to comment
Delarius Posted March 2, 2019 Share Posted March 2, 2019 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 Quote Link to comment
ken-ji Posted March 2, 2019 Share Posted March 2, 2019 (edited) 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 March 2, 2019 by ken-ji Quote Link to comment
comet424 Posted March 2, 2019 Author Share Posted March 2, 2019 (edited) @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 March 2, 2019 by comet424 Quote Link to comment
comet424 Posted March 2, 2019 Author Share Posted March 2, 2019 oh and in your last post you told me to do ssh not .ssh but I remove both of them Quote Link to comment
ken-ji Posted March 2, 2019 Share Posted March 2, 2019 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 Quote Link to comment
ken-ji Posted March 2, 2019 Share Posted March 2, 2019 The ssh plugin might be blocking root logins... which is definitely making your setup way more complicated to start from. Quote Link to comment
comet424 Posted March 2, 2019 Author Share Posted March 2, 2019 @ken-ji I have a ssh plugin but its only for I think the ssh rysnc I had to install or so but not setup for a user servers are rebooting Quote Link to comment
Recommended Posts
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.