2

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.

4
  • If you see documentation: In a normal openSUSE installation, the openSSH package is already installed. The daemon is sshd. Commented Mar 5, 2015 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? Commented Mar 5, 2015 at 23:47
  • what about 'openssh'? Commented Mar 5, 2015 at 23:52
  • Ah. So apparently the package goes by a different name in openSUSE than it does in Ubuntu and Fedora... Commented Mar 5, 2015 at 23:59

1 Answer 1

5

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.

2
  • 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 ;) Commented Jan 18, 2016 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 Commented Aug 11, 2018 at 22:32

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.