This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

ROOT Login
#1
ROOT Login
when i use terminal SSH 22 to login. I cannot login as root, I have to login as the user I created when installing Ubuntu OS. and then sudo -i to change to root. (which is ok i get root access)
PROBLEM:
when i use WinSCP to login I again cannot login as root. I can only login as the user I created when installing Ubuntu OS. but cannot change to root like I do in SSH terminal. So I do not have access to important folders (full Access) which i need to get pls ?
Is there a way to get root access using WinSCP or other file/ftp manager I dont yet know about ?
Thanks for help Smile
Reply
Thanks given by:
#2
RE: ROOT Login
There are ways around it. WinSCP does not allow switching to root unfortunately, only in terminal. You would have to activate root logins for your OS which is NOT recommended! But, if you do, you should only use key pairing and NOT password logins. You will need to Google how to do this for your OS.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: ROOT Login
I need to be able for starters to edit Zentora theme
adding my site logos links etc. but without root access via ftp/sftp or someway i'm not aware off
I cannot because it does not allow me permissions denied.
How do I do it pls..
Thanks for help and guidance Smile
Reply
Thanks given by:
#4
RE: ROOT Login
You can use a temporary root login setup and enable/disable it as needed. This way, you can enable root SSH password login, do what you need, then disable it.

Use at your own risk!

OS: Ubuntu 14.04

Enable: (using normal user login in terminal)

Quote:Edit /etc/ssh/sshd_config:
sudo nano /etc/ssh/sshd_config

Comment out the following line:
PermitRootLogin without-password

Just below it, add or edit the following line:
PermitRootLogin yes

Then restart SSH:
sudo service ssh restart


Disable: (using normal user login in terminal)
Quote:Edit /etc/ssh/sshd_config:
sudo nano /etc/ssh/sshd_config

Find:
PermitRootLogin yes

Change to:
PermitRootLogin no

Then restart SSH:
sudo service ssh restart

Always remember to disable the login when finished!

I suggest you save this info in a text file on your desktop for quick reference.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
RE: ROOT Login
Thanks Smile
Reply
Thanks given by:
#6
RE: ROOT Login
Still cannot get it to work Sad

Edit /etc/ssh/sshd_config:
sudo nano /etc/ssh/sshd_config
and this is what i found as default

# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes

so i added PermitRootLogin yes and # commeted out PermitRootLogin without-password

# Authentication:
LoginGraceTime 120
#PermitRootLogin
without-password
PermitRootLogin yes
StrictModes yes

and i've tried loads of different logins and just cannot get in as root..
Reply
Thanks given by:
#7
RE: ROOT Login
Quote:Then restart SSH:
sudo service ssh restart
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: worksmarter


Possibly Related Threads…
Thread Author Replies Views Last Post
Unable to login Getting Application Error: [0204] king4m 0 2 ,980 04-02-2020, 06:06 PM
Last Post: king4m
Not able to login to Sentora { Application Error: [0204] } ijsje 23 69 ,157 09-20-2019, 12:00 AM
Last Post: TGates
root limits sentora thanhlan2103 0 3 ,246 11-02-2018, 06:11 PM
Last Post: thanhlan2103

Forum Jump:


Users browsing this thread: 2 Guest(s)