How to SFTP or FTP into my server with keyadmin  [SOLVED]

Discussions about the usage of KeyHelp.
Post Reply
shoulders
Posts: 70
Joined: Wed 25. Oct 2023, 21:05

How to SFTP or FTP into my server with keyadmin

Post by shoulders »

Hi

Is it possible to enable SFTP/FTP with root access for the default KeyHelp administrator (keyadmin)?

Does this have to be done via the command line?

Currently I am logging on SFTP with root.

Thanks

P.S. I usually live in the Windows world.
User avatar
24unix
Posts: 1644
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: How to SFTP or FTP into my server with keyadmin

Post by 24unix »

shoulders wrote: Wed 25. Oct 2023, 21:26 Does this have to be done via the command line?
Command line is commonly used by server administrators for tasks like these.
shoulders wrote: Wed 25. Oct 2023, 21:26 P.S. I usually live in the Windows world.
If you're more familiar with Windows, working directly on the server via sftp might feel unfamiliar. It would help if you shared more details about what you aim to accomplish. There might be alternative methods that are more comfortable for you.

For clarity:
- Logging in as root can be secure if password-based authentication is disabled.
- The KH Panel-Admin doesn't have an actual account.

Code: Select all

grep <adminname> /etc/passwd
Your system essentially has a root account unless you're on specific configurations like some Ubuntu or Debian setups. Ubuntu is quite flexible in terms of repair, but it often requires 'sudo' for elevated permissions.

I'm curious, why do you want access with your panel account specifically? Is there a reason you're hesitant about using the root account?
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
shoulders
Posts: 70
Joined: Wed 25. Oct 2023, 21:05

Re: How to SFTP or FTP into my server with keyadmin

Post by shoulders »

I wanted to login to the filesystem so I could delete the password file (keyhelp_login_data_2023-10-25_15-56-06) that is created during the installation as it holds usernames and passwords. I managed to login using root of SFTP after I remembered that I had enabled root in the ubuntu setup..

SSH is not exposed to the internet and never will be.

I wanted to disable the root account for security so I thought I would use the keyadmin account. I just assumed it was an Ubuntu user.

So I am guessing that all KeyHelp users are not Ubunutu users.

Is it safe to disable root after installation, it does not mention this in the setup instructions?
User avatar
24unix
Posts: 1644
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: How to SFTP or FTP into my server with keyadmin

Post by 24unix »

shoulders wrote: Wed 25. Oct 2023, 23:54 I wanted to login to the filesystem so I could delete the password file (keyhelp_login_data_2023-10-25_15-56-06) that is created during the installation as it holds usernames and passwords. I managed to login using root of SFTP after I remembered that I had enabled root in the ubuntu setup..
Then just delete the file.
shoulders wrote: Wed 25. Oct 2023, 23:54 SSH is not exposed to the internet and never will be.
That is the way to administrate a real server.
If you prefer a Windows-"Server", there might be better choices for you, where you could play with RDP and the mouse.
shoulders wrote: Wed 25. Oct 2023, 23:54 I wanted to disable the root account for security so I thought I would use the keyadmin account. I just assumed it was an Ubuntu user.
- Set the password to something weird in/etc/shadow.
- Set the shell to /bin/nologin
or whatever you like.
shoulders wrote: Wed 25. Oct 2023, 23:54 So I am guessing that all KeyHelp users are not Ubunutu users.
Unfortunately, many are using this brain-dead Debian copy.
shoulders wrote: Wed 25. Oct 2023, 23:54 Is it safe to disable root after installation, it does not mention this in the setup instructions?
How did you install it?
On a regular setup, you have to tweak Ubuntu just to repair the root account, by default it's broken.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
shoulders
Posts: 70
Joined: Wed 25. Oct 2023, 21:05

Re: How to SFTP or FTP into my server with keyadmin

Post by shoulders »

i used Ubunutu and the root account to install.

thanks for the info
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: How to SFTP or FTP into my server with keyadmin  [SOLVED]

Post by Alexander »

All KeyHelp admin accounts (keyadmin, and all the ones you might create) are just virtual users, which only exists within the database of KeyHelp.
They have no system-user counter part.

All regular KeyHelp user accounts exists on the system with the same username (have a look into /etc/passwd for example).


If you would like to have an additional system user account with root/sudo privileges, you have to create it manually via the command line.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
shoulders
Posts: 70
Joined: Wed 25. Oct 2023, 21:05

Re: How to SFTP or FTP into my server with keyadmin

Post by shoulders »

Alexander wrote: Thu 26. Oct 2023, 10:43 All KeyHelp admin accounts (keyadmin, and all the ones you might create) are just virtual users, which only exists within the database of KeyHelp.
They have no system-user counter part.

All regular KeyHelp user accounts exists on the system with the same username (have a look into /etc/passwd for example).


If you would like to have an additional system user account with root/sudo privileges, you have to create it manually via the command line.
Perfect answer :)
Post Reply