How to install the openssh service on openSUSE

  
                

openSUSE is one of the Linux distributions, and beginners are not very familiar with the system. The following small series will introduce you how to install the openssh service in the openSUSE system. Let's learn together.

This article is to introduce the opensuse Detailed steps to manually install openssh services, reference use it

manually install openssh

Installation platforms: opensuse12.1 x86 KVM Virtual machine

First need to install the dependency package: zlib, openssl

1, download, extract the openssh-6.2p1

code is as follows:

#cd openssh -6.2p1

2, compile

The code is as follows:

#./configure --prefix=/usr --with-pam

#make

3, generate dsa /rsa encryption algorithm key file

Code is as follows:

. /ssh-keygen -t dsa -f /usr/etc/ssh_host_dsa_key

. /ssh-keygen -t rsa -f /usr/etc/ssh_host_rsa_key

4, copy the configuration file

The code is as follows:

#cp -r /etc/ssh /Etc/myssh/

Modify the configuration file /etc/myssh/sshd_config to change the service listening port to 8022

Change #Port 22 to: Port 8022

Of course The ssh service is not installed on the service, and the default 22 port can also be used.

5, you may need to create an empty file

If you get an error: Missing privilege separation directory /var/empty, you do not need to do this step without error.

The code is as follows:

mkdir /var/empty

chown root:wheel /var/empty

chmod 555 /var/emp

6, start the service

The code is as follows:

/home/hby/software/openssh-6.2p1/sshd -f /etc/myssh/sshd_config

7, Check if the service starts normally

netstat -apn

Copyright © Windows knowledge All Rights Reserved