LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 05-24-2002, 05:00 PM   #1
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
How safe is ssh/openssh?


Is it safe to login as root over ssh?
Is it recomended to use private/public key with all clients, rather than password authorizations?

thanks
 
Old 05-24-2002, 06:43 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
It's a basic practice to not allow root logins on any networked service, to minimize risks. Especially when there are workable, secure alternatives (sudo) you shouldn't enable root logins.
Private/public key is preferable, because sshd checks if the key belongs to you. It encrypts a "challenge" using your public key which can only be "answered" by your private key, so it doesn't need stuff like passwords to travel over a hostile network.
 
Old 05-24-2002, 11:12 PM   #3
geoffm33
Member
 
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
Like unspawn said. One (of many) good reasons never to allow root to login is that a hacker only needs to guess the password to gain access. This is sort of different for SSH but ftp and telnet fall under this. Without root access, a hacker has to guess a username AND password.
 
Old 05-25-2002, 01:36 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Original Poster
Rep: Reputation: 30
I know that for services other than ssh, you better don't use root login.
But do think that, if and when breaking into the ssh connection, there is the best chance to capture and exploit the first part of communication = user/pw authorization, or is it equally exploitabale anytime during connection?

Do you think that leaving idle ssh connection on for a long time 1day or more, poses the treat for exploit?
 
Old 09-23-2014, 05:03 PM   #5
mwalshe2000
LQ Newbie
 
Registered: Sep 2014
Distribution: debian
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
It's a basic practice to not allow root logins on any networked service, to minimize risks. Especially when there are workable, secure alternatives (sudo) you shouldn't enable root logins.
Private/public key is preferable, because sshd checks if the key belongs to you. It encrypts a "challenge" using your public key which can only be "answered" by your private key, so it doesn't need stuff like passwords to travel over a hostile network.

Oh good idea,

Thanks for the tip.

Michael
 
Old 09-23-2014, 05:06 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
In case you didn't notice - you just woke up a 12 year old thread!

The info is still useful, but necro-posting is considered bad form - best to start a new thread.
 
Old 09-23-2014, 05:16 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...and closed. Apparently he posted (https://www.linuxquestions.org/quest...sh-4175519849/) before he searched.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference between openssh and ssh israel Linux - Software 2 09-18-2003 08:04 PM
ssh, openssh... telnet desjazz Linux - Newbie 2 03-10-2003 02:23 PM
SSH Vulnerabilities and OpenSSH mikeyt_333 Linux - Security 3 01-09-2003 11:15 PM
Difference b/w OpenSSH and SSH? Rampage2884 Linux - Newbie 2 09-13-2002 02:26 PM
SSH/OpenSSH mikesvx1 Linux - Security 2 12-21-2001 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration