LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Reply
  Search this Thread
Old 08-09-2006, 11:41 PM   #1
matticus
LQ Newbie
 
Registered: Jun 2006
Location: Perth, AUS
Distribution: SuSE 10.1
Posts: 25

Rep: Reputation: 15
can ssh communicate with diff versions


ok, heres my problem I have new servers with the standard version of ssh on it, with ssh contents located in /root/.ssh and I'm needing them to talk via ssh to some dying old sunos servers, running an earlier kernel and version of ssh, with the ssh contents located in /.ssh2, I need all these machines to all have an authorized_keys file with all the public keys; at first I thought I'd just need to rename the /.ssh2 folder to /.ssh to make it uniform but I still cant get the machines to talk smoothly, also the older servers public keys generated look different to the new machines public keys. Do i need to update the older suns version of ssh in order to get it working or am I missing something, thanks.
 
Old 08-10-2006, 09:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
with ssh contents located in /root/.ssh
Don't allow root account logins over the network for any service, LAN or not. Period.


and I'm needing them to talk via ssh to some dying old sunos servers
So this thread belongs in the Solaris forum, right? Do they only use protocol v1?


I thought I'd just need to rename the /.ssh2 folder to /.ssh
OpenSSH reads info from ~/.ssh by default and only uses ~/.ssh2 if it exists.
It's not necessary to split that up.


I still cant get the machines to talk smoothly
Post exact and verbose output of both ends please.
If you don't want to mess with your running daemons start one with tripple debug flags on another port and pipe the output to file. The daemon will die when disconnected.
 
Old 08-10-2006, 09:30 AM   #3
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
Quote:
Originally Posted by unSpawn
with ssh contents located in /root/.ssh
Don't allow root account logins over the network for any service, LAN or not. Period.
I disagree. Allowing root access via Password authentication and using a weak root password is a big risk, since an attacker can easily mount a dictionary attack. Disabling root login prevents that.
However, when properly secured, root login is no more vulnerable than using a user account to log in and suto gain root privileges. Especially when one needs regular root access (maybe even by automated scripts), remote root login maybe the only option.
Of course, one should be careful to secure the SSH server. The best thing would be to disable password authetication and use public-key authetication.
 
Old 08-10-2006, 11:38 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
However, when properly secured, root login is no more vulnerable than using a user account to log in and suto gain root privileges.
Generally speaking allowing direct root account access to any networked service just is not accepted procedure, it exposes the root account, it makes managing access and accounting harder and it's also a discipline thing. In essence it's not a question of a SSHv2+pubkeyauth root login being "good" but it's one about avoiding unnecessary risks. Allowing direct root account access just isn't best practice.


Especially when one needs regular root access (maybe even by automated scripts), remote root login maybe the only option
Frequency is IMNSHO no excuse for direct root account access. Please name one task for which there are no alternatives and direct root account access is the only option.
 
Old 08-10-2006, 12:06 PM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I think this root account restriction highly depends on your setup.
Disabling root account would mean that to gain root access you would first need to crack a user account. So you need to crack one more account and be logged in locally.
The thing is, as soon as you have entered a system, priviledge escalation is in general not to complicated (its here that it depends on your setup). At least its a known general rule.

I agree for the increased logging in case of priviledge escalation and my system all have root account disable but its not THAT clear to me what the consequences are but I'm interested in knowing more.

I don't mention people who use sudo without thinking, this option doesn't help them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 01:28 AM
Solution Netgear WG511 & Linux 2 diff versions lewt Linux - Wireless Networking 1 12-25-2004 07:30 PM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 07:06 PM
communicate via serial... how-to? adam_boz Linux - Newbie 4 10-22-2002 11:30 AM
two ssh versions. c_lhee Linux - Security 7 10-22-2002 10:03 AM

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

All times are GMT -5. The time now is 05:09 AM.

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