You are not logged in.

#1 2009-12-14 13:51:25

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

ssh securelogon?

Hi,
Is all communication with an opensshd exnrypted? Imean both the handshake (authentication) and then all key strokes?
Or is it recommended to log on as a user and then do sudo or su afterwards?


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#2 2009-12-14 14:04:10

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: ssh securelogon?

You shouldn't use SSH as root. Bad practice, bad mojo.

I don't think everything is encrypted, but from the moment you're authenticated everything is. Initial authentication is clear text afaik, something SSH keys remedies.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-12-14 14:32:53

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Re: ssh securelogon?

ok, so "best-practice" is to first log on as a regular user and then do the sudo stuff since its encrypted from the moment I logged on.

Last edited by ftornell (2009-12-14 14:35:38)


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#4 2009-12-14 15:35:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ssh securelogon?

No - as B already said, best practice is to use ssh keys.

B - you have to be less subtle. tongue

Offline

#5 2009-12-14 15:54:13

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: ssh securelogon?

Well either that or I was being fuzzy again, I just don't know it anymore tongue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-12-14 22:51:35

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: ssh securelogon?

you will be more protected if you change the door of the ssh daemon (server)
then just use keys and passsword to non-root users


actually its better to create a single user to use the ssh service so you get 'double' protection and keep your data secure even if you give the ssh key to 3rd parties or if something wrong happens.

after logged in, you just need to do

su <user>
(then you input your user password)

then use sudo as your user or even sudo su again to get root access..


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB