create account

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

View this thread on: hive.blogpeakd.comecency.com
· @themarkymark · (edited)
$53.63
How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!
![](https://steemitimages.com/DQmbYrjFovvq3TLdihx2j5f9FBftavQEacCwvUtAAGiL9zy/image.png)

If you are running a witness, full node, web server, or any Linux box the very first thing you should do is to stop using root to login, and set up SSH key authentication and disable root logins.

This process is surprisingly easy once you have done it a few times, but this guide will make it absolutely painless even for the non-admin types.  The post looks overwhelming, but it isn't a long process, I can do it inside of five minutes on new servers.

When you first get a Linux server you will most likely receive a root password and sign in with that.  Continuing to log in using this account is very insecure and not recommend.  Not only does this allow anyone who breaks your password access to everything on your system, it means you are doing every command with full admin access even when you don't need it.

These steps are what I do with every server I own or work with.  All my servers are Debian based (mostly all Ubuntu at this point) so these commands will be for Ubuntu.  They should be the same for most versions of Linux except for the `Update Packages` section, which will use `yum` on RedHat flavors like CentOS.

To properly secure a new (or current) server, you want to do these steps, all of which I will cover in detail below.

* Change root password
* Update Packages
* Create New User
* Add new user to `sudo` group
* Create SSH Key
* Install SSH Key for new user
* Test SSH Key authentication
* Disable root login & password authentication

# Change Root Password

The first thing you should do is change your root password.  Most service providers will give you a short 8-16 character password to get you started.  This is also usually displayed in clear text in their control panel.

You are going to want to change this password immediately, I recommend a secure password like this:

`jsEwnxFr3Dj]%&-K}i_}zU:R,oz=3=86a7A*.jD9tz8Aq*Y7-fM%FkQw_.:UWM#n`

As ridiculous as it looks, you will never need this password except in extreme emergencies.  Using a good password manager will make this an easy process.  Going forward you will only need your custom user password to do anything as root, so this password won't typically be used.  Be sure to keep this password safe.

<center>![](https://steemitimages.com/DQmd6s3JyiM9z8gGbUUExUkKABmsMS7VwPEiucF1oVUG4en/image.png)</center>

To change your password in Linux just issue the following command and follow the prompts.

`passwd`

# Update Packages
This is the only thing I recommend doing before the next steps, but even this can be done later.  I like to do it first just to get it over with and make sure I am dealing with an up to date system.  Each provider will provide the server in different states.

The first step is to download an updated list of packages.  You do this with the `sudo apt update` command.

![](https://i.imgur.com/3NbtEoL.png)

![](https://i.imgur.com/wl6Jv7B.png)

This will update the operating systems package manager (`apt` or `apt-get`) has the most current list of packages that can be installed.

This does not upgrade any packages, it just updates the database that tells `apt` what packages can be installed.

We next want to tell `apt` to update all packages that are installed.

To upgrade all packages to the latest version and resolve any dependencies properly, you use `sudo apt dist-upgrade`.

![](https://i.imgur.com/b1ZQcO9.png)

![](https://i.imgur.com/MH6utth.png)

You may already be familiar with `apt upgrade` and not `apt dist-upgrade`.

You can see the difference here:

![](https://i.imgur.com/CQsxT2l.png)

*tl;dr Unless you are using advanced apt features like freezing versions and running personal package archives (PPA) then you should use `apt dist-upgrade` to resolve all dependencies automatically.*

# Create New User
Now that we know the system is up to date, you need to create a user account of yourself.  Logging in as root is insecure as it exposes root to the public but it also means you will use root for every task regardless if you require it.

Create a user is very easy, let's make a user `hoban`

`sudo adduser hoban`

It will ask you for a password, for this password you want something long, complex, but something you can remember as you will type it everytime you want to do something as root.

![](https://i.imgur.com/IdfFksI.png)

I like to have a `Full Name` but I don't fill in the rest of the options, just hit enter and then Y to confirm.

From this point on, you will only login as this user, but don't logout yet.  Let's do one more thing, and then we will switch users.

# Add new user to `sudo` group
Now that we have a new user, we are going to want to give that user `sudo` access.  To do this, you add the user to do the `sudo` group.

`usermod -aG sudo hoban`

You will not receive any feedback from this command unless you did something wrong.

If you don't know what `sudo` is, `sudo` allows you to run commands as an unprivledged user with root power while properly logging who executed the command.  This last feature is critical for multi-admin systems.

Basically, if you want to do something that requires root permissions, prefix the command with `sudo`.

You will notice I used `sudo` above, even though I was root.   I did this for two reasons.  To prevent any issues if you were doing the commands on an account other than root, but also to get you in the mindset of using it.

At this point, login to SSH again using your new credentials.  You can test to make sure you got everything correct at this point by doing the following command:

`sudo apt update`

You will be promopted for your password and then should see the package list update.  If you get a permission denied after doing the password correctly, make sure you have executed `sudo usermod -aG sudo hoban`, replacing `hoban` with whatever user you created. You will need to do this as root, and relogin as your user when adding a group.

# Create SSH Key
At this point, we want to create our SSH key pair, this is a public and private key you will use as a `what you have` type of security.  Using a passphrase on your key is optional, but I highly recommend using a passphrase.  Once you use an SSH key for authentication, that is all that is required to get into any server you add your key to.  Without a passphrase, they don't need to know anything, they only need access to your private key.

A good SSH client like `SecureCRT` or using SSHAgent will make using a passphrase less painful.

I highly recommend using `ed25519` algorithm for your SSH key, most system support this algorithm but keep in mind some older software will not.  If you use an SSH client on your mobile phone or some older clients, you want to confirm support.  I would opt to upgrade your software over resorting to using the current standard RSA key.

The difference between `rsa` and `ed25519` is minor but significant.  `rsa` uses elliptical curves that many believe have been compromised by the NSA.  `ed25519` uses new algorithms that are much more secure.  You can read the differences in detail [here](https://stribika.github.io/2015/01/04/secure-secure-shell.html) if you have the stomach for it.

There is two popular ways to create an SSH key.  Using your SSH Client (Putty, SecureCRT, or whatever you use) or using `ssh-keygen` on Linux.  If you use Linux, you will need to download the private key off the server and delete it.  This is not as secure as doing it all on your private workstation.

If you have local Linux/Mac machine, you can run the following command to make an ssh key using ed25519.

`ssh-keygen -t ed25519`

![](https://i.imgur.com/4zNwBgm.png)


You will be prompted where to save the files, and if you want a passphrase (Yes, yes you do!).  By default this will create two files, `id_ed25519` and `id_25519.pub`.  The first is your private key, and is what you use on your workstation to confirm your identity, the second is what you put on any server that you want to be able to login into.  

It is safe to share your public SSH key, but your private ssh key you shoudl treat like your Bitcoin private key.

PuttyGen is the easiest way to create an SSH Key on Windows.   Make sure you choose ed25519 and follow the prompts and save the public and private key some where safe.

You will need to configure your SSH client to point to your private key, and you will need to install your public key on your server [next step].

# Install SSH Key for new user
To install your public key on your server involves a couple of steps.  First login as your personal user account, you will not need root for any of these commands, so do not use `sudo` as we are only changing your local user files.

#### make sure you are in your home folder
`cd ~`

#### make .ssh directory
`mkdir .ssh`

#### lock down permissions on .ssh
`chmod 700 .ssh`

#### add your key
`vim .ssh/authorized_keys`
Paste the one-line of text from your public key file and hit escape to go into command mode then write & exit.

Hit escape
`:wq` # Write & Exit

#### Change permission of your public key
`chmod 644 .ssh/authorized_keys`

At this point, you should be all set.  If you did everything correctly you should be able to login with just your SSH key and passphrase.

# Test SSH Key authentication
Add your private key to your SSH client, and make sure you disable password authentication and only leave public key authentication enabled.

For the most popular SSH client (Putty) you will want to add your private key here:

![](https://steemitimages.com/DQmUjjVECFv5aZdD6Fx4WXBRqi2gdaneEASSJKtTusRLuEz/image.png)

Once you have confirmed you can log in via your SSH key and hopefully a passphrase, you will want to disable root login and password authentication.

# Disable root login & password authentication
</br>
**WARNING** DO NOT DO THIS STEP UNTIL YOU HAVE CONFIRMED YOU CAN LOGIN WITH YOUR SSH KEY
</br>
You will lose access to your server if you have not first confirmed you can log in with only your SSH Key and passphrase.

If you have confirmed you can log in, we will now edit the SSH server files to prevent anyone from being able to log in as root or with a password.

`sudo vim /etc/ssh/sshd_config`

Look for the two lines:

`PermitRootLogin yes`
`PasswordAuthentication yes`

You want to make both of these no, and his escape `:wq` to save and exit.   You will then need to restart the ssh daemon with the following command.

`sudo systemctl restart ssh`

It will warn you of losing connections if things are not set up properly.   Hit yes, and *do not log out!*.

Immediately open a new SSH connection and confirm you can log in before closing this session. This is your only last ditch effort to save yourself if you didn't do all the steps properly.

That's it, the post was really long, but the actual steps are quite quick and easy.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 73 others
👎  , ,
properties (23)
authorthemarkymark
permlinkhow-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong
categorysysadmin
json_metadata{"tags":["sysadmin","security","linux","witness-category","witness"],"image":["https://steemitimages.com/DQmbYrjFovvq3TLdihx2j5f9FBftavQEacCwvUtAAGiL9zy/image.png","https://steemitimages.com/DQmd6s3JyiM9z8gGbUUExUkKABmsMS7VwPEiucF1oVUG4en/image.png","https://i.imgur.com/3NbtEoL.png","https://i.imgur.com/wl6Jv7B.png","https://i.imgur.com/b1ZQcO9.png","https://i.imgur.com/MH6utth.png","https://i.imgur.com/CQsxT2l.png","https://i.imgur.com/IdfFksI.png","https://i.imgur.com/4zNwBgm.png","https://steemitimages.com/DQmUjjVECFv5aZdD6Fx4WXBRqi2gdaneEASSJKtTusRLuEz/image.png"],"links":["https://stribika.github.io/2015/01/04/secure-secure-shell.html"],"app":"steemit/0.1","format":"markdown"}
created2018-01-12 16:53:30
last_update2018-01-16 20:24:33
depth0
children51
last_payout2018-01-19 16:53:30
cashout_time1969-12-31 23:59:59
total_payout_value43.124 HBD
curator_payout_value10.504 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10,877
author_reputation1,774,089,680,027,894
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,045,720
net_rshares6,763,764,444,929
author_curate_reward""
vote details (140)
@cryptonik ·
Top notch tutorial, @themarkymark! I will need this very soon.
👍  
properties (23)
authorcryptonik
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t165641776z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["themarkymark"],"app":"steemit/0.1"}
created2018-01-12 16:56:42
last_update2018-01-12 16:56:42
depth1
children0
last_payout2018-01-19 16:56:42
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_length62
author_reputation2,299,620,450,256
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,046,371
net_rshares497,748,066
author_curate_reward""
vote details (1)
@enolife ·
>If you are running a witness, full node, web server, or any Linux box the very first thing you should do is to stop using root to login, and set up SSH key authentication and disable root logins.

This summarises and anybody expecially network admins should take it serious.
It's sometimes to hear of boxes getting owned and compromised because of mistakes like this.

Thanks for sharing this as it'll go a long in helping a lot of persons to be security conscious when it comes to network security. You're so apt and your research and write up is spot on. 

**Happy Steeming**
properties (22)
authorenolife
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t165703443z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 16:57:06
last_update2018-01-12 16:57:06
depth1
children0
last_payout2018-01-19 16:57:06
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_length578
author_reputation3,291,168,947,960
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,046,443
net_rshares0
@farizalm ·
Good article. Thank you for @themarkymark
👍  ,
properties (23)
authorfarizalm
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180426t101031207z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["themarkymark"],"app":"steemit/0.1"}
created2018-04-26 10:10:36
last_update2018-04-26 10:10:36
depth1
children0
last_payout2018-05-03 10:10:36
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_length41
author_reputation3,589,261,901,224
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_id52,231,877
net_rshares1,110,522,867
author_curate_reward""
vote details (2)
@hoschitrooper ·
Very good Tutorial, im still following to get TOP  News....
properties (22)
authorhoschitrooper
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t170136417z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 17:01:36
last_update2018-01-12 17:01:36
depth1
children0
last_payout2018-01-19 17:01:36
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_length59
author_reputation1,965,642,081,416
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,047,322
net_rshares0
@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)
@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,089,680,027,894
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
@israruddin ·
hi @themarkymark i will send 1sbd to @upmyvote, what percent will upvote in my post. @ipromote weak
properties (22)
authorisraruddin
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180113t002840101z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["themarkymark","upmyvote","ipromote"],"app":"steemit/0.1"}
created2018-01-13 00:28:45
last_update2018-01-13 00:28:45
depth1
children1
last_payout2018-01-20 00:28: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_length99
author_reputation1,870,153,445,814
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,117,393
net_rshares0
@themarkymark ·
You got $1.35 for your $0.50 bid.  I wouldn't call it weak, it's  much smaller than my other bots but also has a lower minimum.

![](https://steemitimages.com/DQmegdoYsCDegDXPKg9Hzdu1AJpWc3RKDNu7PX8h3CPQjwm/image.png)
properties (22)
authorthemarkymark
permlinkre-israruddin-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180113t010914749z
categorysysadmin
json_metadata{"tags":["sysadmin"],"image":["https://steemitimages.com/DQmegdoYsCDegDXPKg9Hzdu1AJpWc3RKDNu7PX8h3CPQjwm/image.png"],"app":"steemit/0.1"}
created2018-01-13 01:09:12
last_update2018-01-13 01:09:12
depth2
children0
last_payout2018-01-20 01:09: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_length217
author_reputation1,774,089,680,027,894
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,122,641
net_rshares0
@iyos ·
Wow. Great post.
properties (22)
authoriyos
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t180425580z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 18:04:30
last_update2018-01-12 18:04:30
depth1
children0
last_payout2018-01-19 18:04:30
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_length16
author_reputation-46,147,779
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,059,046
net_rshares0
@jjb777 ·
$0.04
Nice tutorial. I can add the following points:
- U can use ssh-copy-id to install authorized keys easily
- For public servers u might want to change the default sshd port (e.g. 2222). Otherwise u might get lots of connection tries and big log files.

Thanks. J
👍  
properties (23)
authorjjb777
permlinkre-themarkymark-2018112t183921795z
categorysysadmin
json_metadata{"tags":["sysadmin","security","linux","witness-category","witness"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"}
created2018-01-12 17:39:27
last_update2018-01-12 17:39:27
depth1
children1
last_payout2018-01-19 17:39:27
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.008 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length260
author_reputation3,338,376,561,587
root_title"How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,054,573
net_rshares5,978,315,457
author_curate_reward""
vote details (1)
@themarkymark · (edited)
$0.05
Old habits die hard :)  Especially since most are going from Windows->Linux

I didn't want to get into much detail on changing ports and fail2ban as it is a bit more work.  Most users who change ports with fail2ban fail to properly configure it for the new port and it just sits there protecting a port not even being used.
👍  
properties (23)
authorthemarkymark
permlinkre-jjb777-re-themarkymark-2018112t183921795z-20180112t190346846z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:03:42
last_update2018-01-12 19:03:57
depth2
children0
last_payout2018-01-19 19:03:42
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length323
author_reputation1,774,089,680,027,894
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,069,149
net_rshares6,630,790,017
author_curate_reward""
vote details (1)
@kslo ·
great tutorial @themarkymark!  I love SSH Public Key Authentication.  It's the first thing I do when setting up a new linux system.  I did it so many times I just have a bash script that modifies all the ssh settings and installs my public key.

I've never seen the distinction between ed25519 and rsa, I'm going to have to do some more reading on that.  I've always just used a high key length rsa algorithm for my keys.  Thanks for bringing that to my attention, I now know what I'm spending my weekend reading about!
properties (22)
authorkslo
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t191738067z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["themarkymark"],"app":"steemit/0.1"}
created2018-01-12 19:17:36
last_update2018-01-12 19:17:36
depth1
children0
last_payout2018-01-19 19:17:36
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_length519
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,071,432
net_rshares0
@luckyboy786 ·
Wow!!!. , i like your post. i wait for your next post , carry on  . all the best
properties (22)
authorluckyboy786
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t173412685z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 17:34:12
last_update2018-01-12 17:34:12
depth1
children0
last_payout2018-01-19 17:34: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_length80
author_reputation-67,869,236,239
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,668
net_rshares0
@maamirh ·
Very useful information you shared.
properties (22)
authormaamirh
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180120t080716500z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-20 08:07:18
last_update2018-01-20 08:07:18
depth1
children0
last_payout2018-01-27 08:07:18
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_length35
author_reputation25,877,254,061
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_id30,811,283
net_rshares0
@neander-squirrel ·
$0.81
When I did this with @ginabot's server after your recommendation, i had to search each step on Google...
It went alright but to have a comprehensive tutorial like this in hand can speed up my next server setup for sure :)
Thank you!
👍  
properties (23)
authorneander-squirrel
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t171708624z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["ginabot"],"app":"steemit/0.1"}
created2018-01-12 17:17:12
last_update2018-01-12 17:17:12
depth1
children0
last_payout2018-01-19 17:17:12
cashout_time1969-12-31 23:59:59
total_payout_value0.610 HBD
curator_payout_value0.199 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length232
author_reputation416,506,081,655
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,050,388
net_rshares102,724,024,939
author_curate_reward""
vote details (1)
@nicnas · (edited)
I knew you were watching my computer! Thanks for the advice, I will be using this.
properties (22)
authornicnas
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t180952988z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 18:09:48
last_update2018-01-12 18:10:33
depth1
children0
last_payout2018-01-19 18:09:48
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_length82
author_reputation38,554,121,369,241
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,059,988
net_rshares0
@nwjordan ·
Very thorough and technical. I will be referring to this as a resource. Thanks @themarkymark
properties (22)
authornwjordan
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t170231954z
categorysysadmin
json_metadata{"tags":["sysadmin"],"users":["themarkymark"],"app":"steemit/0.1"}
created2018-01-12 17:02:30
last_update2018-01-12 17:02:30
depth1
children0
last_payout2018-01-19 17:02:30
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_length92
author_reputation6,611,889,961,557
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,047,526
net_rshares0
@personz ·
A great primer, resteeming.
properties (22)
authorpersonz
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t181411000z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 18:14:09
last_update2018-01-12 18:14:09
depth1
children0
last_payout2018-01-19 18:14: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_length27
author_reputation42,452,361,038,560
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,060,755
net_rshares0
@pieter87 ·
Nice post.  Should actually implement this to our linux machines at work.  You can never be safe enough.
properties (22)
authorpieter87
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180114t212608484z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-14 21:26:09
last_update2018-01-14 21:26:09
depth1
children0
last_payout2018-01-21 21:26: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_length104
author_reputation756,077,106,384
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,552,023
net_rshares0
@r351574nc3 ·
$0.10
This assumes `sudo` is the group that gives `sudo` access. This isn't the case on every linux distribution. Some use `wheel` or `admin`

To ensure use of `sudo` group do the following after step 2 **Update Packages**

1. visudo
1. Add ```%sudo   ALL=(ALL:ALL) ALL```
👍  , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t111744164z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 11:17:42
last_update2018-07-06 11:17:42
depth1
children2
last_payout2018-07-13 11:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.081 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length266
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,707
net_rshares52,576,169,544
author_curate_reward""
vote details (3)
@themarkymark ·
> These steps are what I do with every server I own or work with. All my servers are Debian based (mostly all Ubuntu at this point) so these commands will be for Ubuntu.
properties (22)
authorthemarkymark
permlinkre-r351574nc3-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t112545925z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 11:25:45
last_update2018-07-06 11:25:45
depth2
children1
last_payout2018-07-13 11:25: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_length169
author_reputation1,774,089,680,027,894
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,645,481
net_rshares0
@r351574nc3 ·
$0.10
That's not necessary, I was pointing information that would be useful for users of other distributions.
👍  , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-re-r351574nc3-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t125816431z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 12:58:15
last_update2018-07-06 12:58:15
depth3
children0
last_payout2018-07-13 12:58:15
cashout_time1969-12-31 23:59:59
total_payout_value0.077 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length103
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,655,193
net_rshares50,549,733,585
author_curate_reward""
vote details (3)
@r351574nc3 · (edited)
$0.09
I think a safer approach would be:
1. Change root password
1. Update Packages
1. Admin Account Setup
    1. Create New User
    1. Add new user to sudo group
    1. Test login and sudo
    1. Disable root login
    1. Test ssh configuration with `sshd -T`
1. SSH Key Setup
    1. Create SSH Key
    1. Install SSH Key for new user
    1. Test SSH Key authentication
    1. Disable password authentication
    1. Test ssh configuration with `sshd -T`
1. Restart sshd

This breaks up **Disable root login & password authentication** into separate steps because it is safer. Instead of a kill switch at the end, vulnerabilities are removed in a sequence. First, a user is created and login to the user with sudo is tested and verified working. Then root logins are disabled. Next, key setup is handled along with disabling password logins.
👍  , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t112615398z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 11:26:15
last_update2018-07-06 13:56:09
depth1
children5
last_payout2018-07-13 11:26:15
cashout_time1969-12-31 23:59:59
total_payout_value0.072 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length836
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,645,532
net_rshares46,635,476,070
author_curate_reward""
vote details (3)
@themarkymark · (edited)
I do the process in less than five minutes. If I can log in via the SSH key, I don't have to worry about the password authentication, nor do I care about it as it is being disabled.

The entire time I have failbacks:

* root login is still enabled until the final step
* initial root login session is still connected
* I have tested user login with key and sudo command functionality

I see no problems doing it all at once, especially since it's done very quickly and the final test will verify everything and nothing is locked down until that is completed.
properties (22)
authorthemarkymark
permlinkre-r351574nc3-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t113308887z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 11:33:06
last_update2018-07-06 11:33:24
depth2
children4
last_payout2018-07-13 11:33:06
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_reputation1,774,089,680,027,894
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,646,203
net_rshares0
@r351574nc3 ·
$0.10
> I do the process in less than five minutes. 

I'm glad you can. I was making the suggestion for others that want to attempt this that find it's an easier to troubleshoot process. It's a miniscule change since this process is unchanged with the exception of disabling root sooner. It's literally one extra step and not a big one.
👍  , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-re-r351574nc3-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t132346969z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-07-06 13:23:45
last_update2018-07-06 13:23:45
depth3
children3
last_payout2018-07-13 13:23:45
cashout_time1969-12-31 23:59:59
total_payout_value0.077 HBD
curator_payout_value0.021 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length330
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,657,921
net_rshares49,638,656,091
author_curate_reward""
vote details (3)
@rxhector ·
awww crap - more sysadmin work to learn - i bookmarked this one - now to fire up a dummy vm and make sure I can do it - then move on to production server ;)
properties (22)
authorrxhector
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t183523142z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 18:36:36
last_update2018-01-12 18:36:36
depth1
children0
last_payout2018-01-19 18:36:36
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_length156
author_reputation20,310,242,279,674
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,064,656
net_rshares0
@steemthat ·
Thank you for sharing this.
properties (22)
authorsteemthat
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t184546098z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 18:45:39
last_update2018-01-12 18:45:39
depth1
children0
last_payout2018-01-19 18:45:39
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_length27
author_reputation1,483,266,589,954
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,066,188
net_rshares0
@street.yoga ·
Isn't the root user locked by default in Ubuntu?
properties (22)
authorstreet.yoga
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180309t202136007z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-03-09 20:21:45
last_update2018-03-09 20:21:45
depth1
children3
last_payout2018-03-16 20:21: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_length48
author_reputation2,738,791,069,636
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_id43,392,309
net_rshares0
@themarkymark ·
not on most VPS/Dedicated servers.
properties (22)
authorthemarkymark
permlinkre-streetyoga-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180309t205241365z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-03-09 20:52:39
last_update2018-03-09 20:52:39
depth2
children2
last_payout2018-03-16 20:52:39
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_length34
author_reputation1,774,089,680,027,894
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_id43,396,267
net_rshares0
@street.yoga ·
Right, I have set up dozens on my own, and used Mittwald lately, must have escaped my attention then, but now that you mention it, I remember that Hetzner had root logins, I still get goosebumps from that time when I was told to leave it that way :) Thanks.
properties (22)
authorstreet.yoga
permlinkre-themarkymark-re-streetyoga-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180309t212203437z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-03-09 21:22:03
last_update2018-03-09 21:22:03
depth3
children1
last_payout2018-03-16 21:22:03
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_length257
author_reputation2,738,791,069,636
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_id43,399,929
net_rshares0
@teamsteem ·
Very well put. I think I put pull it off. I'm not sure when I'll going to try it.
properties (22)
authorteamsteem
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t193653978z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:36:51
last_update2018-01-12 19:36:51
depth1
children0
last_payout2018-01-19 19:36:51
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_length81
author_reputation284,804,541,406,803
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,074,500
net_rshares0
@thedawn ·
Very informative post. Its a great help and knowledge sharing. Thanks for sharing this post.
properties (22)
authorthedawn
permlinkre-themarkymark-2018112t222550103z
categorysysadmin
json_metadata{"tags":["sysadmin","security","linux","witness-category","witness"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"}
created2018-01-12 17:27:48
last_update2018-01-12 17:27:48
depth1
children0
last_payout2018-01-19 17:27:48
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_length92
author_reputation18,112,689,713,612
root_title"How to properly setup SSH Key Authentication - If you are logging into your server with root, you are doing it wrong!"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,052,543
net_rshares0
@trending ·
$0.44
Thanks for this great tutorial, and the heavy detail for the technically illiterate...like myself.

> As ridiculous as it looks, you will never need this password except in extreme emergencies. Using a good password manager will make this an easy process.

Sorry if I missed this somewhere...what password manager do you recommend?
👍  
properties (23)
authortrending
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t202127826z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 20:21:24
last_update2018-01-12 20:21:24
depth1
children0
last_payout2018-01-19 20:21:24
cashout_time1969-12-31 23:59:59
total_payout_value0.332 HBD
curator_payout_value0.108 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length331
author_reputation3,529,170,665,631
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,097
net_rshares55,899,194,852
author_curate_reward""
vote details (1)
@yabapmatt ·
$0.49
Super helpful post! One quick thing, the command to generate the SSH key has a typo, you put 'ad25519' instead of 'ed25519'.
👍  
properties (23)
authoryabapmatt
permlinkre-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t192708903z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 19:27:09
last_update2018-01-12 19:27:09
depth1
children3
last_payout2018-01-19 19:27:09
cashout_time1969-12-31 23:59:59
total_payout_value0.369 HBD
curator_payout_value0.120 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length124
author_reputation160,224,638,135,630
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,966
net_rshares62,108,769,884
author_curate_reward""
vote details (1)
@themarkymark ·
Thanks! I can't tell you how much I hate editing / writing posts on Steemit, it is so laggy and Grammarly makes it virtually impossible to read due to some quirky stuff going on with their forms.  Only site I have ever had problems with it.
properties (22)
authorthemarkymark
permlinkre-yabapmatt-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180112t202159797z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2018-01-12 20:21:57
last_update2018-01-12 20:21:57
depth2
children2
last_payout2018-01-19 20:21: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_length240
author_reputation1,774,089,680,027,894
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,204
net_rshares0
@r351574nc3 ·
$0.11
Atom, emacs, and vim have preview modes for markdown that include checkers. I like to use external editors because then it gives me an excuse to use `git` to version control my posts. 

Next evolution is to post to steemit directly from `git` (See https://github.com/r351574nc3/docker-git-steem-bot)
👍  , ,
properties (23)
authorr351574nc3
permlinkre-themarkymark-re-yabapmatt-re-themarkymark-how-to-properly-setup-ssh-key-authentication-if-you-are-logging-into-your-server-with-root-you-are-doing-it-wrong-20180706t110628245z
categorysysadmin
json_metadata{"tags":["sysadmin"],"links":["https://github.com/r351574nc3/docker-git-steem-bot"],"app":"steemit/0.1"}
created2018-07-06 11:06:27
last_update2018-07-06 11:06:27
depth3
children1
last_payout2018-07-13 11:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.084 HBD
curator_payout_value0.023 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length299
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,643,611
net_rshares54,801,428,557
author_curate_reward""
vote details (3)