You are not logged in.

#1 2016-04-26 02:58:43

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Changing username as a security measure? (ssh via router port forward)

I'm running password-less SSH (key only) with no root login enabled. Using a high-numbered port.

Have not (yet?) set up fail2ban, since there's only this one port open/forwarded, and I don't allow password logins anyway. May set that up in future.

I'm trying to build up to (at least) and owncloud install and LAN-only NAS. However I'm wondering how much extra security comes from changing user names. Should it be different from my own username (on my laptop), should it be changed from the default (this is Arch Linux ARM which defaults to ARM), or should it be some long string?

As I understand it the username is almost incidental to security when using SSH keys, but would like some confirmation.

P.S. - While this particular system is using Arch Linux ARM the question doesn't seem to be at all specific to that.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2 2016-04-26 03:34:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,769

Re: Changing username as a security measure? (ssh via router port forward)

Hey, old friend.   Good to see you about and around.

IMHO, none of those measures would provide any additional security.  Fail2Ban won't see any activity.  Changing user names won't help much -- a random attacker won't know your username anyway, and with key only log on, I don't think they get any feedback.  Using a different user name reduces the convenience factor to you by an order of magnitude.

ssh keys are golden.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-04-26 03:49:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Changing username as a security measure? (ssh via router port forward)

Agree with ewaller. The only thing I would add is, in addition to the other SSH options you have enabled, restrict logins to your user.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-04-26 03:51:13

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Changing username as a security measure? (ssh via router port forward)

Thanks ewaller. Life has changed a whole lot (I see you've been prolific since I've last been reasonably active too).

That was pretty much my read as well. The NSA leaks are worrisome, but I doubt I can do much about that beyond using 4096-bit keys. Ideally I'd use passwords on my keys as well, but automatic-backups and passwords don't really play well together sad

EDIT: Oh hi jason! Is there any additional security to adding a user restriction if I only have a couple of SSH keys in authorized_keys anyway?

Last edited by ngoonee (2016-04-26 03:52:00)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2016-04-26 03:59:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Changing username as a security measure? (ssh via router port forward)

It just further narrows the range of possibilities. The narrower the gap, the less you have to worry about...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-04-28 01:17:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Changing username as a security measure? (ssh via router port forward)

jasonwryan wrote:

It just further narrows the range of possibilities. The narrower the gap, the less you have to worry about...

Fair enough I suppose. Thanks.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB