By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,773 Members | 1,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,773 IT Pros & Developers. It's quick & easy.

Does OpenSSH work with redhat or linux?

harshadd
100+
P: 176
I found latest open SSH at [HTML]http://www.openssh.com/[/HTML]
BUT not sure if it will work with RedHAT linux or not?? can any one guide?
Dec 7 '07 #1
Share this Question
Share on Google+
11 Replies

numberwhun
Expert Mod 2.5K+
P: 3,503
I found latest open SSH at [HTML]http://www.openssh.com/[/HTML]
BUT not sure if it will work with RedHAT linux or not?? can any one guide?
You should have clicked on the link for "Linux" and then, from the next page, chosen an FTP mirror. What you should download is either an RPM or a source file. RPM files can typically be installed as such:

Expand|Select|Wrap|Line Numbers
  1. rpm -ivh <file>.rpm
  2.  
unless otherwise documented as to installation options. The source code, you will have to do a configure / make / make install in order to install it. The RPM may be easier for you.

Regards,

Jeff
Dec 7 '07 #2

harshadd
100+
P: 176
Do you mean to say, if I d/load a source RPM I can install it on any type of linux? RedHat too?
Dec 8 '07 #3

prn
Expert 100+
P: 254
prn
Do you mean to say, if I d/load a source RPM I can install it on any type of linux? RedHat too?
Well, there are some complications.

RPM stands for RedHat Package Manager and is the format used by various descendants of Red Hat linux (as well as SuSe). If you download any type of RPM then you have a chance of installing it on a Red Hat descendant, but you cannot install it on, e.g. Slackware.

What RedHat linux are you using? If you don't mean RHEL (and RHEL4 or RHEL5 in particular) then you should probably update your OS. RedHat linux has been discontinued for several years now.

If your version of Red Hat is new enough, then you can probably find a binary RPM for it, which makes installation MUCH easier. OTOH, if your version is old enough, then it may still be difficult to install even with source as dependencies may differ by quite a lot. I doubt that installing open-ssh would really be impossible, but it may take some effort and it may involve messing about with your link libraries.

In my experience a source RPM may or may not be easier to deal with than a basic source tarball. YMMV.

HTH,
Paul
Dec 11 '07 #4

harshadd
100+
P: 176
I installed ssh2 but since its a non-commercial version i wanna revert back to openssh.. if i started sshd it starts sshd2 only why?
Dec 21 '07 #5

numberwhun
Expert Mod 2.5K+
P: 3,503
I installed ssh2 but since its a non-commercial version i wanna revert back to openssh.. if i started sshd it starts sshd2 only why?
Probably because the sshd command is a (soft) link to sshd2. Find out where "sshd" is and do an "ls -l" on it and see if it shows something like:

Expand|Select|Wrap|Line Numbers
  1. sshd -> /path/to/sshd2
  2.  
If it does, then it is just a link. If you have open ssh on your system, then you can delete the soft link and create a link to open ssh's sshd.

Regards,

Jeff
Dec 21 '07 #6

harshadd
100+
P: 176
Thanks for reply
I checked, Its not a link.
I have reinstalled the linux server witrh RH enterpreise edition, it has now openssh working
NOW pls tell me:
How can I restrict users to be in there home directory only.?

ie. Chrooted environment which will not allow users to browse through my entire server?
Dec 24 '07 #7

harshadd
100+
P: 176
I checked, Its not a link.
I have reinstalled the linux server witrh RH enterpreise edition, it has now openssh working
NOW pls tell me:
How can I restrict users to be in there home directory only.?

ie. Chrooted environment which will not allow users to browse through my entire server?
I checkd this for help but it is not having what I am looking for
Here
Dec 24 '07 #8

prn
Expert 100+
P: 254
prn
Hi Harshad,

I installed ssh2 but since its a non-commercial version i wanna revert back to openssh.. if i started sshd it starts sshd2 only why?
The most likely thing is in /etc/sshd/sshd_config where you will see the line:

#Protocol 2

This indicates that Protocol 2 (only) is the default. The defaults are included as comments. To allow use of sshd version 1 protocol, uncomment that line and add ",1" as:

Protocol 2,1

Then you can log in using ssh1. This is, strictly speaking, not recommended. Protocol 2 is definitely superior, wiht much better security, so don't do it unless you know what you're doing and why.

I see that you appear to have reinstalled and now protocol 1 is working. I'm not sure why that should be the case, since the protocol 2 only configuration is the default and has been for some time now.

Regarding the other question of how to restrict your users to their home directory, I have no experience to offer. A quick google check for "linux restrict users home directory" yielded a couple of interesting hits, but mostly they indicate to me that this is not a trivial task. I would recommend thorough testing before you try it on a server with (payuing?) users on it.

HTH,
Paul
Dec 27 '07 #9

P: 19
Which distribution version are you using? I am using RH8, I have issues with SSH .

I am sure if you are running Fedora, or a Debian distro, things should run smoothly for you
Dec 30 '07 #10

harshadd
100+
P: 176
yes it is RH Enterprise 4
Dec 31 '07 #11

harshadd
100+
P: 176
Just wanted to know. HOW do I configure openssh to restrict users to their home directories only.
ie. user foo can have access only to /home/foo/*.*

Rgds
HND
Jan 1 '08 #12

Post your reply

Sign in to post your reply or Sign up for a free account.