1

I recently installed openSUSE, and I want to set up an ssh server so that I can ssh into this machine. However, I am having trouble installing openssh-server.

I have tried

$ sudo zypper install openssh-server

This is what this site says to type, but I get this message:

Package 'openssh-server' not found.

On my Ubuntu machine, if I type

$ sudo apt-get install openssh-server

or on my Fedora machine

$ sudo yum install openssh-server

everything works fine.

How can I install openssh-server on openSUSE? Do I have to manually add an RPM repository for it or something?

The solution doesn't need to use zypper, but I'd prefer not having to manually download and compile the source code.

  • If you see documentation: In a normal openSUSE installation, the openSSH package is already installed. The daemon is sshd. – taliezin Mar 5 '15 at 23:44
  • @taliezin I believe you that openSUSE comes with openSSH pre-installed. But it doesn't make sense that zypper can't find it. How is the openSSH package supposed to be updated when necessary if the package cannot be found by the package manager? – Sildoreth Mar 5 '15 at 23:47
  • what about 'openssh'? – taliezin Mar 5 '15 at 23:52
  • Ah. So apparently the package goes by a different name in openSUSE than it does in Ubuntu and Fedora... – Sildoreth Mar 5 '15 at 23:59
3

There are two issues here:

  1. openSUSE comes with openSSH pre-installed, so the ssh server does not need to be installed
  2. The packages for openSSH apparently have different names in openSUSE than they do in Ubuntu and Fedora (and maybe others?).
    • In Ubuntu (using apt-get) and Fedora (using yum), "openssh-server" is a valid package name
    • In openSUSE, the package "openSSH" covers both the SSH client and the SSH server

So if you type

sudo zypper install openssh

everything should work fine. Though, as I said previously, it should already be installed. It will tell you if it's already installed.

  • 1
    "it should already be installed" => it's not true when using default image opensuse with docker. Anyway thanks for the answer, it was helpful, so you got +1 from me ;) – ddzialak Jan 18 '16 at 15:10
  • 1
    When I run that, I got No provider of 'openSSH' found.. I think the package is actually lower-case sudo zypper install openssh – portforwardpodcast Aug 11 '18 at 22:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.