Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install openssh service in openSUSE system

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install openssh service in openSUSE system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install openssh service in openSUSE system.

This article introduces the detailed steps for opensuse to install openssh service manually. Please refer to it and use it.

Manually install openssh

Installation platform: opensuse12.1 x86 KVM virtual machine

First you need to install the dependency package: zlib, openssl

1. Download and decompress openssh-6.2p1

The code is as follows:

# cd openssh-6.2p1

2. Compilation

The code is as follows:

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

# make

3. Generate the key file of dsa/rsa encryption algorithm

The 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, if the ssh service is not installed on the service, you can also use the default port 22.

5. You may need to create an empty file

If you report an error: Missing privilege separation directory / var/empty, you do not need to do this if you do not report an 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 whether the service starts normally

Netstat-apn | grep sshd to see if there is a service with port 8022. If so, you can use a client connection.

Client # ssh root@192.168.76.62-p 8022

At this point, I believe you have a deeper understanding of "how to install openssh services in the openSUSE system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report