Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: artful on June 24, 2005, 05:16:56 PM
-
Can anyone explain to me what I need to change in order to prevent being able to login via ssh as 'root'?
thanks
-
Can anyone explain to me what I need to change in order to prevent being able to login via ssh as 'root'?
By default, you *can't* log in via ssh as root. The only way you can enable root login via ssh is from the command line.
If you've done that (which I doubt), you need to undo it:
/sbin/e-smith/config setprop sshd PermitRootLogin no
/sbin/e-smith/signal-event remoteaccess-update
-
Charlie
> By default, you *can't* log in via ssh as root.
What version of sme are you referring to Charlie, on 6.0 you can log in as root OK by default ?
Thanks
Ray
-
sorry guys but you are wrong!
I first installed 6.0 and always made ssh connections with root login and occassionally admin in order to get the setup menu.
I later did a clean install of version 6.5 and i'm still using root as login.
I know this is potentionaly unsafe so that is why I posed the question of changing it.
I get quite a few hack attacks so I would like to change it!
-
sorry guys but I guess you are wrong!
I first installed 6.0 and always made ssh connections with root login and occassionally admin in order to get the setup menu.
I later did a clean install of version 6.5 and i'm still using root as login.
I know this is potentionaly unsafe so that is why I posed the question of changing it.
I get quite a few hack attacks so I would like to change it!
-
artful
Apart from the question of whether ssh root access is available by default or not (perhaps he is referring to another version), Charlie has answered how to disable it.
/sbin/e-smith/config setprop sshd PermitRootLogin no
/sbin/e-smith/signal-event remoteaccess-update
Thanks Charlie
-
By default, you *can't* log in via ssh as root. The only way you can enable root login via ssh is from the command line.
By default:
- SSH is disabled
- SSH root logins are disabled
- SSH via password authentication is disabled
There are toggles for all of these on the Remote Access panel.
Gordon