3 ms·
a: $port != 22 is enough to thwart most bots and skiddies. If you think the port number is a guarantee that you are safe or that you are communicating wit
by ewokhead 13y ago
a: $port != 22 is enough to thwart most bots and skiddies.
If you think the port number is a guarantee that you are
safe or that you are communicating with a blessed ssh you
are sadly mistaken.
b: Uhh the port number means nothing.
Host keys are there for a reason... Someone does not
understand the functions of SSH.
http://www.snailbook.com/ http://www.snailbook.com/ <- great book
c: If you are not investigating fingerprint issues when
logging in via SSH and you call yourself a sysadmin,
please stop. You are going to be the reason your company
ends up in the news because your shit got owned and
2,000,000 user account hashes were leaked blah blah.
d: If you are not using key based auth and you have a fly
by night keystore policy. Which means you have a
keystore - stop. The whole keystore for SSH shit
irritates me. I cannot tell you how many times I have
heard sysadmins say a that a single private key is a
"best practice". It is not a best practice it is a
stupid practice and really prevents you from protecting
unauthorized logins on other machines for the obvious
reasons.
Put your public keys on bitbucket.com or source
management. Put your private keys on an encrypted disk
in an encrypted archive if you must. This is still dumb
imho because it is not needed.
Leave one account (root) with console only/no ssh access
that will allow for keys to be revoked/recreated when
users need new keys.
e: The original article http://www.adayinthelifeof.nl/2012/03/12/why-putting-ssh-on-another-port-than-22-is-bad-idea/ http://www.adayinthelifeof.nl/2012/03/12/why-putting-ssh-on-...
Is wrong and misguided. port knocking or knockd is an
obscurity measure, precisely the kind he argues against.
The linked article from the OP calls this out.
f: Spinning up daemons is a big deal for non-priv users?
So spinning up a remotely accessible Lisp out of emacs
from a screen that is running in the background is bad?
Hmm, here I thought that computers were meant to be tools
for humans to get work done... Sorry, background processes
are part of getting shit done. Users should be able to spin
up the stuff they want to spin up in the network segments
they have access to without the bureaucracy of misguided
fools making the jobs of others more difficult because
they think spinning up a gunicorn process or a custom daemon
is worse than their unpatched kernel, apache tomcat and mysql
listening on a publicly accessible address. Stateful firewalls
and hosts allow/deny are there for a reason.
Sorry for the snarky reply here but there are a lot of people
chiming in that obviously have very little knowledge about
managing *nix ops and remote access. I have pretty strong opinions
about this kind of stuff. Especially the single key stupidity and
not checking host fingerprints.
- dmourati 13y ago>I cannot tell you how many times I have heard sysadmins say a that a single private key is a "best practice". Are you talking about a host key, user key, what? Confused.
- probably_wrong 13y agoSorry for deviating for the topic, but I think it must be said: "Sorry for the snarky reply" is not enough, considering that you wrote it at the same time you could have gone back and rewrite the text into a polite, well-worded argument. That's just condescension - if you really were sorry, you'd have rewritten your text. By replying like that you've ensured that your point won't come across - for all I know you might be technically right, but using that tone ensures that lots of people will refuse to read past the second paragraph. If your argument is solid, that's all you need. IMHO, snark makes your point come across as bragging, and no one likes that.
- ewokhead 13y ago"Sorry for the snarky reply" is not enough, considering that you wrote it at the same time you could have gone back and rewrite the text into a polite, well-worded argument. That's just condescension - if you really were sorry, you'd have rewritten your text." You are right. I am not sorry for the snarky reply. "By replying like that you've ensured that your point won't come across - for all I know you might be technically right, but using that tone ensures that lots of people will refuse to read past the second paragraph." Okay. "If your argument is solid, that's all you need. IMHO, snark makes your point come across as bragging, and no one likes that." Okay.