Viewing a response to: @themarkymark/how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong
I'm a newish Linux user with mint, which, as I understand doesn't let you use the root account. Although the main account can do root commands with sudo.. but I still don't quite understand the distinction and if, I shouldn't use that main account still. Any advice would be appreciated
author | inquiringtimes |
---|---|
permlink | re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t173307463z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"app":"steemit/0.1"} |
created | 2018-01-12 17:33:09 |
last_update | 2018-01-12 17:33:09 |
depth | 1 |
children | 11 |
last_payout | 2018-01-19 17:33:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 288 |
author_reputation | 22,511,044,719,347 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,053,480 |
net_rshares | 0 |
sudo just gives you temporary root permissions. You can think of the sudo command as a temporary switch user command. The `su` command in linux allows you to switch user so `sudo` is like "switch user, do as". Try it yourself, with your main account type the `whoami` command and it should return your username. Then type `sudo whoami` and and it should return `root`. This just tells you that what ever command you run after `sudo` you run with `root` permissions.
author | kslo |
---|---|
permlink | re-inquiringtimes-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t192647472z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"app":"steemit/0.1"} |
created | 2018-01-12 19:26:45 |
last_update | 2018-01-12 19:26:45 |
depth | 2 |
children | 9 |
last_payout | 2018-01-19 19:26:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 470 |
author_reputation | 574,428,101,189 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,072,911 |
net_rshares | 0 |
yeah, but confusing why sudo accepts my account password, and mint doesn't even let you log into root with su.... so I'm feeling like I'm secure because mint doesn't let me use root, but wondering if I'm less secure than I think.... :-(
author | inquiringtimes |
---|---|
permlink | re-kslo-re-inquiringtimes-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t195125095z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"app":"steemit/0.1"} |
created | 2018-01-12 19:51:24 |
last_update | 2018-01-12 19:51:24 |
depth | 3 |
children | 8 |
last_payout | 2018-01-19 19:51:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.028 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 236 |
author_reputation | 22,511,044,719,347 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,076,905 |
net_rshares | 4,169,704,839 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kslo | 0 | 4,169,704,839 | 100% |
@inquiringtimes I'm not as familiar with Mint as others, but I think it's just a flavor of Debian (to which Ubuntu is as well). You can log in to your root account by typing `sudo su` on the command line. Because your main account is a part of the sudoers group you have the ability to use `sudo`. If you're a former windows junkie who has seen the light like I was, then it's similar to right-clicking on a program and saying "run as Administrator". As long as you are using your main account and you have a secure password I think you're probably fine.
author | kslo |
---|---|
permlink | re-inquiringtimes-re-kslo-re-inquiringtimes-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t201358622z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"users":["inquiringtimes"],"app":"steemit/0.1"} |
created | 2018-01-12 20:13:57 |
last_update | 2018-01-12 20:13:57 |
depth | 4 |
children | 1 |
last_payout | 2018-01-19 20:13:57 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 558 |
author_reputation | 574,428,101,189 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,080,780 |
net_rshares | 0 |
sudo asks for your permission to validate access, this is so if you login as your user, walk away and someone comes up and tries to use `sudo rm -rf` they need authentication.
author | themarkymark |
---|---|
permlink | re-inquiringtimes-re-kslo-re-inquiringtimes-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t202417425z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"app":"steemit/0.1"} |
created | 2018-01-12 20:24:12 |
last_update | 2018-01-12 20:24:12 |
depth | 4 |
children | 5 |
last_payout | 2018-01-19 20:24:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 175 |
author_reputation | 1,774,988,226,591,842 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,082,578 |
net_rshares | 0 |
Most "workstation" Linux builds create a regular user during the install because it is so important not to use root as your main account.
author | themarkymark |
---|---|
permlink | re-inquiringtimes-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t190215010z |
category | sysadmin |
json_metadata | {"tags":["sysadmin"],"app":"steemit/0.1"} |
created | 2018-01-12 19:02:12 |
last_update | 2018-01-12 19:02:12 |
depth | 2 |
children | 0 |
last_payout | 2018-01-19 19:02:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 137 |
author_reputation | 1,774,988,226,591,842 |
root_title | "How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 29,068,865 |
net_rshares | 0 |