一个专注于IT互联网运维的技术博客

CentOS 7下SSH远程连接相关的3个软件包

2019.05.24

OpenSSH 是 Linux 中实现 Secure Shell(安全外壳协议,简称SSH)的工具,CentOS7 中和 OpenSSH 相关的软件包有3个:客户端 openssh-clients、服务端 openssh-server 以及客户端和服务端都依赖的 openssh 软件包。

下面的内容介绍每个软件包的作用、包含的所有文件等。

SSH 核心文件软件包 openssh

SSH 客户端和服务端都依赖核心文件软件包openssh,它包含 SSH 客户端和服务端都需要的配置文件和程序,比如ssh-keygen

软件包介绍

[root@k8s-admin ssh]# yum info openssh
已安装的软件包
名称    :openssh
架构    :x86_64
版本    :7.4p1
发布    :16.el7
大小    :1.9 M
源    :installed
来自源:anaconda
简介    : An open source implementation of SSH protocol versions 1 and 2
网址    :http://www.openssh.com/portable.html
协议    : BSD
描述    : SSH (Secure SHell) is a program for logging into and executing
         : commands on a remote machine. SSH is intended to replace rlogin and
         : rsh, and to provide secure encrypted communications between two
         : untrusted hosts over an insecure network. X11 connections and
         : arbitrary TCP/IP ports can also be forwarded over the secure channel.
         : 
         : OpenSSH is OpenBSD's version of the last free version of SSH, bringing
         : it up to date in terms of security and features.
         : 
         : This package includes the core files necessary for both the OpenSSH
         : client and server. To make this package useful, you should also
         : install openssh-clients, openssh-server, or both.

软件包的文件

[root@k8s-admin ssh]# rpm -ql openssh
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ctr-cavstest
/usr/libexec/openssh/ssh-keysign
/usr/share/doc/openssh-7.4p1
/usr/share/doc/openssh-7.4p1/CREDITS
/usr/share/doc/openssh-7.4p1/ChangeLog
/usr/share/doc/openssh-7.4p1/INSTALL
/usr/share/doc/openssh-7.4p1/OVERVIEW
/usr/share/doc/openssh-7.4p1/PROTOCOL
/usr/share/doc/openssh-7.4p1/PROTOCOL.agent
/usr/share/doc/openssh-7.4p1/PROTOCOL.certkeys
/usr/share/doc/openssh-7.4p1/PROTOCOL.chacha20poly1305
/usr/share/doc/openssh-7.4p1/PROTOCOL.key
/usr/share/doc/openssh-7.4p1/PROTOCOL.krl
/usr/share/doc/openssh-7.4p1/PROTOCOL.mux
/usr/share/doc/openssh-7.4p1/README
/usr/share/doc/openssh-7.4p1/README.dns
/usr/share/doc/openssh-7.4p1/README.platform
/usr/share/doc/openssh-7.4p1/README.privsep
/usr/share/doc/openssh-7.4p1/README.tun
/usr/share/doc/openssh-7.4p1/TODO
/usr/share/licenses/openssh-7.4p1
/usr/share/licenses/openssh-7.4p1/LICENCE
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man8/ssh-keysign.8.gz

SSH 服务端 openssh-server

软件包介绍

[root@k8s-admin ssh]# yum info openssh-server
已安装的软件包
名称    :openssh-server
架构    :x86_64
版本    :7.4p1
发布    :16.el7
大小    :971 k
源    :installed
来自源:anaconda
简介    : An open source SSH server daemon
网址    :http://www.openssh.com/portable.html
协议    : BSD
描述    : OpenSSH is a free version of SSH (Secure SHell), a program for logging
         : into and executing commands on a remote machine. This package contains
         : the secure shell daemon (sshd). The sshd daemon allows SSH clients to
         : securely connect to your SSH server.

软件包的文件

[root@k8s-admin ssh]# rpm -ql openssh-server
/etc/pam.d/sshd
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/sshd.socket
/usr/lib/systemd/system/sshd@.service
/usr/lib64/fipscheck/sshd.hmac
/usr/libexec/openssh/sftp-server
/usr/sbin/sshd
/usr/sbin/sshd-keygen
/usr/share/man/man5/moduli.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sshd.8.gz
/var/empty/sshd
  • SSH 服务端配置文件/etc/ssh/sshd_config,帮助文档/usr/share/man/man5/sshd_config.5.gz,可以通过man sshd_config命令查看帮助文档。

SSH 客户端 openssh-clients

软件包介绍

[root@k8s-admin ssh]# yum info openssh-clients
已安装的软件包
名称    :openssh-clients
架构    :x86_64
版本    :7.4p1
发布    :16.el7
大小    :2.5 M
源    :installed
来自源:anaconda
简介    : An open source SSH client applications
网址    :http://www.openssh.com/portable.html
协议    : BSD
描述    : OpenSSH is a free version of SSH (Secure SHell), a program for logging
         : into and executing commands on a remote machine. This package includes
         : the clients necessary to make encrypted connections to SSH servers.

软件包的文件

[root@k8s-admin ssh]# rpm -ql openssh-clients
/etc/ssh/ssh_config
/usr/bin/scp
/usr/bin/sftp
/usr/bin/slogin
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-copy-id
/usr/bin/ssh-keyscan
/usr/lib64/fipscheck/ssh.hmac
/usr/libexec/openssh/ssh-pkcs11-helper
/usr/share/man/man1/scp.1.gz
/usr/share/man/man1/sftp.1.gz
/usr/share/man/man1/slogin.1.gz
/usr/share/man/man1/ssh-add.1.gz
/usr/share/man/man1/ssh-agent.1.gz
/usr/share/man/man1/ssh-copy-id.1.gz
/usr/share/man/man1/ssh-keyscan.1.gz
/usr/share/man/man1/ssh.1.gz
/usr/share/man/man5/ssh_config.5.gz
/usr/share/man/man8/ssh-pkcs11-helper.8.gz
  • SSH 客户端配置文件/etc/ssh/ssh_config,帮助文档/usr/share/man/man5/ssh_config.5.gz,可以通过man ssh_config命令查看帮助文档。
发表评论