ssh -v
查看一下两台机器的版本是否类似,有可能出现的情况是一台机器采用的openssh,而另外一台机器采用的SSH2,其实openssh和ssh2是两回事,公钥格式也不相同。
SSH2的公钥写法是~/.ssh2/authorization
Key xxx.xxx
xxx.xxx为SSH2的pubkey文件名。
如果想从openssh转SSH2可以使用命令:
ssh-keygen -e -f ~/.ssh/id_dsa.pub > ~/.ssh/id_dsa_ssh2.pub
从SSH2转openssh可以使用命令:
ssh-keygen -i -f ~/.ssh/id_dsa_1024_a.pub > ~/.ssh/id_dsa_1024_a_openssh.pub
其实SSH的种类很多,查了下资料有如下解释:
SSH
A generic term referring to SSH protocols or software products.
SSH-1
The SSH protocol, Version 1. This protocol went through several
revisions, of which 1.3 and 1.5 are the best known, and we will
write SSH-1.3 and SSH-1.5 should the distinction be necessary.
SSH-2
The SSH protocol, Version 2, as defined by several draft standards
documents of the IETF SECSH working group.
SSH1
Tatu Ylönen's software implementing the SSH-1 protocol; the original
SSH. Now distributed and maintained (minimally) by SSH
Communications Security, Inc.
SSH2
The "SSH Secure Shell" product from SSH Communications Security, Inc.
This is a commercial SSH-2 protocol implementation, though it is
licensed free of charge in some circumstances.
ssh (all lowercase letters)
A client program included in SSH1, SSH2, OpenSSH, F-Secure SSH, and
other products, for running secure terminal sessions and remote
commands. In SSH1 and SSH2, it is also named ssh1/ssh2, respectively.
OpenSSH
The product OpenSSH from the OpenBSD project,
which implements both the SSH-1 and SSH-2 protocols.
OpenSSH/1
OpenSSH, referring specifically to its behavior
when using the SSH-1 protocol.
OpenSSH/2
OpenSSH, referring specifically to its behavior
when using the SSH-2 protocol.
分享到:
相关推荐
为了明确当前使用的SSH版本是SSH2还是OpenSSH,可以通过简单的命令行来判断。执行`ssh -V`命令,根据输出的信息来确定: - **SSH2**: 如果显示为`SSH Secure Shell 3.2.9.1 (non-commercial version)`,则表示您...
#### 一、OpenSSH与SSH2简介 SSH(Secure Shell)是一种网络协议,用于计算机之间的加密登录。SSH2是SSH协议的第二个版本,提供了更安全的数据传输方式。OpenSSH是SSH协议的一种免费实现,广泛应用于各种操作系统中...
解决openssh升级到8.2以后无法登录的问题,支持jdk1.5及以上版本
Linux 服务器搭建之十一:ssh/openssh 服务器 Linux 服务器搭建之十一:ssh/openssh 服务器是 Linux 操作系统平台上的一种常见服务器,用于远程登录和管理 Linux 服务器。下面是该服务器的搭建过程和相关知识点: ...
openssh-9.5p1-1.el8.bclinux.x86_64.rpm openssh-clients-9.5p1-1.el8.bclinux.x86_64.rpm openssh-server-9.5p1-1.el8.bclinux.x86_64.rpm update.sh
2. 基于密钥的安全验证(SSH2):用户需要生成一对密钥,公钥存储在远程服务器上,私钥保留在本地。登录时,客户端用私钥解密服务器发送的质询,这样可以避免在传输过程中暴露口令,同时增加了安全性。 OpenSSH的...
CentOS 是一款流行的Linux发行版,而OpenSSH是其默认的SSH(Secure Shell)客户端和服务端软件,用于加密网络连接,确保数据传输的安全性。然而,OpenSSH版本会不断更新以修复安全漏洞和引入新特性。本篇文章将详细...
“openssh for windows”这个项目是一个用cygwin包装了最小的openssh服务端和客户端的工具,基本的ssh、scp、sftp、ssh-agent、ssh-keyscan 命令都具备,安装程序会自动注册Path目录和注册表,现在就能直接在命令行...
ssh程序,版本为OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
- 测试连接:从另一台机器尝试使用ssh连接到Hisi3559A,验证配置是否正确。 6. **安全与维护** - 确保更新OpenSSH至最新版本以防止已知的安全漏洞。 - 限制不必要的网络服务,仅开启必要的端口和服务。 - 使用...
它的最新版本openssh-9.3p2带来了多项改进和安全修复,对于任何依赖于SSH服务的系统来说,保持OpenSSH的更新至关重要。本文将深入探讨升级OpenSSH到openssh-9.3p2的过程以及涉及到的相关组件。 首先,我们来看看...
OpenSSH是基于SSH协议的开源实现,由OpenBSD项目维护,提供包括ssh、sshd、sftp等在内的多种安全网络服务。其中,sshd是作为守护进程运行的服务,负责处理来自客户端的SSH连接请求。OpenSSH的安全性在于其加密技术,...
2. 进入openssh目录:cd openssh-5.6p1 3. 编译安装openssh:sudo ./configure --with-ssl-dir=/usr/local/openssl、sudo make、sudo make install 第四步:启动ssh-server sudo /usr/sbin/sshd 或 sudo /usr/...
2. `openssh-9.3p2-1.el6.x86_64.rpm`:这是OpenSSH的核心库和通用工具,包括服务器和客户端共用的部分,如ssh-keygen和ssh-agent。 3. `openssh-server-9.3p2-1.el6.x86_64.rpm`:此包包含OpenSSH服务器,负责接受...
2. **放置RPM包**:将提供的RPM包放到CentOS 7系统的本地存储中,例如`/tmp`目录。 3. **停止OpenSSH服务**:使用以下命令停止OpenSSH服务: ``` sudo systemctl stop sshd ``` 4. **安装RPM包**:使用`yum`或`...
openssh-9.3p2-1.el7.x86_64.rpm openssh-clients-9.3p2-1.el7.x86_64.rpm openssh-server-9.3p2-1.el7.x86_64.rpm
适用银河麒麟 v10 sp2 aarch64架构的二进制openssh 9.7 rpm包 修复安全漏洞、更新升级openssh 版本,显示openssl版本信息,内含ssh-copy-id命令 2024年3月28日制作
2.命令行进入该文件夹 cd [你的新建文件夹] 3.执行 sudo dpkg -i openssh-client_7.2p2-4_amd64.deb sudo dpkg -i openssh-sftp-server_7.2p2-4_amd64.deb sudo dpkg -i openssh-server_7.2p2-4_amd64.deb ...
记录一下ssh离线升级版本(有openssh8.8安装包和依赖),redhad的ssh7.4升级到8.8,不用卸载旧版本ssh直接替换历史版本,迁移密钥重启ssh。有一定危险,我这有安全限制不能用telnet连接,需要多开几个ssh连接已被...
包含openssh升级到openssh-9.3p2的所有包,其内容如下: - openssh-9.3p2.tar.gz - openssl-1.0.2o.tar.gz - zlib-1.2.11.tar.gz 解决漏洞: - OpenSSH 安全漏洞(CVE-2023-38408) - OpenSSH远程代码执行漏洞(CVE-...