Does OpenSSH work with redhat or linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harshadd
    New Member
    • Dec 2007
    • 180

    #1

    Does OpenSSH work with redhat or linux?

    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?
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by harshadd
    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:

    Code:
    rpm -ivh <file>.rpm
    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

    Comment

    • harshadd
      New Member
      • Dec 2007
      • 180

      #3
      Do you mean to say, if I d/load a source RPM I can install it on any type of linux? RedHat too?

      Comment

      • prn
        Recognized Expert Contributor
        • Apr 2007
        • 254

        #4
        Originally posted by harshadd
        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

        Comment

        • harshadd
          New Member
          • Dec 2007
          • 180

          #5
          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?

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by harshadd
            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:

            Code:
            sshd -> /path/to/sshd2
            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

            Comment

            • harshadd
              New Member
              • Dec 2007
              • 180

              #7
              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?

              Comment

              • harshadd
                New Member
                • Dec 2007
                • 180

                #8
                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

                Comment

                • prn
                  Recognized Expert Contributor
                  • Apr 2007
                  • 254

                  #9
                  Hi Harshad,

                  Originally posted by harshadd
                  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

                  Comment

                  • t3chn0n3rd
                    New Member
                    • Dec 2007
                    • 19

                    #10
                    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

                    Comment

                    • harshadd
                      New Member
                      • Dec 2007
                      • 180

                      #11
                      yes it is RH Enterprise 4

                      Comment

                      • harshadd
                        New Member
                        • Dec 2007
                        • 180

                        #12
                        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

                        Comment

                        Working...