create account

RE: How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong! by inquiringtimes

View this thread on: hive.blogpeakd.comecency.com

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

· @inquiringtimes ·
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
properties (22)
authorinquiringtimes
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t173307463z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 17:33:09
last_update2018-01-12 17:33:09
depth1
children11
last_payout2018-01-19 17:33:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length288
author_reputation22,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,053,480
net_rshares0
@kslo ·
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.
properties (22)
authorkslo
permlinkre-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
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:26:45
last_update2018-01-12 19:26:45
depth2
children9
last_payout2018-01-19 19:26:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length470
author_reputation574,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,072,911
net_rshares0
@inquiringtimes ·
$0.03
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.... :-(
👍  
properties (23)
authorinquiringtimes
permlinkre-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
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:51:24
last_update2018-01-12 19:51:24
depth3
children8
last_payout2018-01-19 19:51:24
cashout_time1969-12-31 23:59:59
total_payout_value0.028 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length236
author_reputation22,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,076,905
net_rshares4,169,704,839
author_curate_reward""
vote details (1)
@kslo ·
@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.
properties (22)
authorkslo
permlinkre-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
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["inquiringtimes"],"app":"steemit/0.1"}
created2018-01-12 20:13:57
last_update2018-01-12 20:13:57
depth4
children1
last_payout2018-01-19 20:13:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length558
author_reputation574,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,080,780
net_rshares0
@themarkymark ·
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.
properties (22)
authorthemarkymark
permlinkre-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
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 20:24:12
last_update2018-01-12 20:24:12
depth4
children5
last_payout2018-01-19 20:24:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length175
author_reputation1,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,082,578
net_rshares0
@themarkymark ·
Most "workstation" Linux builds create a regular user during the install because it is so important not to use root as your main account.
properties (22)
authorthemarkymark
permlinkre-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
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:02:12
last_update2018-01-12 19:02:12
depth2
children0
last_payout2018-01-19 19:02:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length137
author_reputation1,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_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,068,865
net_rshares0