Jump to content
Sign in to follow this  
yanksno1

ssh help

10 posts in this topic Last Reply

Recommended Posts

Hi, so I'm having trouble ssh'ing into my server. At first I was getting a Host key verification failed. error message, but then deleted my ssh/known_hosts file and got further along but still not fully in. Now when I try to ssh in 2 different things happen when I use both user IDs I created (root and my own) and I still can't get in. For the root user, it looks like my terminal window on my MacBook connects but then kicks me right back out. For my user zach I created, it says the keyboard is unresponsive and it seems like i can't type in my password. Attached a screen shot of it. Any idea's what's going on? 

 

Screen Shot 2019-09-04 at 19.07.17 PM.png

Edited by yanksno1

Share this post


Link to post

I think only the root user will work.   Other users in Unraid are only really intended for controlling access to shares.   Does the password for the root user have special characters that might have problems with the keyboard layout you are using?

Share this post


Link to post

You can only ssh using root.

 

In terms of getting kicked out, it may be a connection issue - can you log in from the Unraid console?

Check you syslog too, does it show a record of root logging in?

Share this post


Link to post

Thanks for the help so far. Well that explains it about trying my other user haha to log in. I'm definitely new at ssh! So now trying the root user, I changed my password on the user to make sure it wasn't that in the system. It kicked me out there, made me log back in so I know it shouldn't be the password right? But now when I try to ssh using the root I get "Permission denied, please try again". Tried looking at my System Log, but didn't see anything obvious. Anything I should look for? Attaching another screen shot just for you guys to look at to make sure I'm not doing anything wrong. Hopefully I can get it going.

 

 

Screen Shot 2019-09-05 at 19.40.58 PM.png

Share this post


Link to post
16 minutes ago, yanksno1 said:

Thanks for the help so far. Well that explains it about trying my other user haha to log in. I'm definitely new at ssh! So now trying the root user, I changed my password on the user to make sure it wasn't that in the system. It kicked me out there, made me log back in so I know it shouldn't be the password right? But now when I try to ssh using the root I get "Permission denied, please try again". Tried looking at my System Log, but didn't see anything obvious. Anything I should look for? Attaching another screen shot just for you guys to look at to make sure I'm not doing anything wrong. Hopefully I can get it going.

 

 

Screen Shot 2019-09-05 at 19.40.58 PM.png

Just double checking, were you ever able to ssh onto your unraid machine?

 

AND

 

Is the following setting enabled (It is located in Settings > Management Access):

image.png.95edad889f9a26daa9254209aea0761a.png

 

Edited by Conmyster

Share this post


Link to post

Root would simply be /

 

What files in particular are you using to remove? I don't tend to touch any files in the root or created by unraid.

Share this post


Link to post

Found out what it was! My "Permit Root Login" setting was set to no. That'd do it. I'm now in after resetting it. Wonder why it was set that, was able to before. Must have happened in an update. Thanks for pointing me in the right direction!

Share this post


Link to post

Deleted that post by accident. So I'm trying to remove some directories in my /mnt/disk1/ folder. I tried this but it gave me this response: 

 

root@Tower:~# sudo rm /mnt/disk1/TV

rm: cannot remove '/mnt/disk1/TV': Is a directory

 

Am I doing anything wrong there? These were folders that were created by the Channels DVR docker that I switched directories to. 

Edited by yanksno1
Channels DVR is a docker, not a plugin

Share this post


Link to post
5 minutes ago, yanksno1 said:

Deleted that post by accident. So I'm trying to remove some directories in my /mnt/disk1/ folder. I tried this but it gave me this response. 

 

root@Tower:~# sudo rm /mnt/disk1/TV

rm: cannot remove '/mnt/disk1/TV': Is a directory

 

Am I doing anything wrong there? These were folders that were created by the Channels DVR docker that I switched directories to. 

Okay I see, are you using any kind of user shares? or just disk shares?

 

I would be careful deleting direct off the disk if user shares are in play as you will only remove the files on that disk.

 

In any case the correct command would be:

rm -r /mnt/disk1/TV

As you are root you do not need to use sudo and you need the -r toggle to go recursive (ie delete directory, sub-directories and files)

Edited by Conmyster

Share this post


Link to post

Thank you so much! The rm -r command worked. Everything so clean again! Very happy. Saved a screenshot of this for the future. 

Share this post


Link to post

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.

Sign in to follow this