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 kslo

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

Viewing a response to: @inquiringtimes/re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t173307463z

· @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
@inquiringtimes ·
I was just stuck with windows until I installed linux without doing a dual boot... ONLY LINUX.  Yes, mint is ubuntu\debian flavoured.

I got a new computer recently, I'm going to up my security in a number of ways on the new one...   I love how simple linux is to use compared to 15 years ago.... the first time I tried to install linux was a nightmare... hehe.  now I only am forced to learn commandline stuff occasionally, which gives me a gradual learning process on the deeper workings.
properties (22)
authorinquiringtimes
permlinkre-kslo-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-20180112t201832486z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 20:18:33
last_update2018-01-12 20:18:33
depth5
children0
last_payout2018-01-19 20:18:33
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_length490
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,081,602
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,776,981,320,642,323
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
@r351574nc3 ·
$0.30
> **DISCLAIMER** if a person approaches just after the user walks away (tailgating), `sudo` will not require a password.

To force behavior of `sudo` to require a password:
1. `sudo visudo`
1. add ```Defaults        env_reset,timestamp_timeout=0```
👍  , , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-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-20180706t111430040z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 11:14:30
last_update2018-07-06 11:14:30
depth5
children4
last_payout2018-07-13 11:14:30
cashout_time1969-12-31 23:59:59
total_payout_value0.230 HBD
curator_payout_value0.072 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length248
author_reputation169,747,269,306,049
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_id63,644,383
net_rshares151,585,844,282
author_curate_reward""
vote details (4)