0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

open sshのダウングレード

Posted at

概要

open sshのダウングレードの記事が少なく, 苦労したので書き残しておきます.

やっていく

ubuntu 20.04ではデフォルトでopenssh-client==1:8.xxx のopen sshが入ってると思います. このバージョンだと

$ ssh-keygen -t rsa

した時に, 古いバージョンの時に比べて長い鍵が生成されます. この鍵の長さが20.04より古いバージョンのubuntu間の通信を阻害します. なので, client側のopen sshのバージョンを強制的に下げて, 鍵の長さを合わせます.

penssh-client==1:7.6p1-4ubuntu0.3まで下げればいけるとのこと
具体的には/etc/apt/souce.listのファイルに下記の1行を追加します.

deb http://security.ubuntu.com/ubuntu bionic-security main

そして, 下記のコマンドで古いバージョンをインストールします.

$ sudo apt update
$ sudo apt-get install openssh-client=1:7.6p1-4ubuntu0.3

これで短い鍵が生成される.

参考にした記事

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?