Takuya Miyashita
This site
Web
Start:
*RSA暗号を使ったssh接続設定 [#u8918ce4]
セキュリティについては何ら保証できません.~
//ネットのあらゆる場所に情報が転がっているが,毎回全く同...
~
接続元と接続先を入れ替えて同じことをすれば,どちらからで...
~
**接続元 (guest) [#uc74a9fd]
#codeprettify{{
$ ssh-keygen -t rsa
}}
すると下のような文が出てくる.
Generating public/private rsa key pair.
Enter file in which to save the key (/home/miyashita/.ss...
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/miyashita/.s...
Your public key has been saved in /home/miyashita/.ssh/i...
入力を3回求められ,1回目は生成するファイルの場所,2,3回目...
~
無事生成できたらリモート接続先へ送る.
#codeprettify{{
$ ssh-copy-id -i ~/.ssh/id_rsa.pub miyashita@hostname
}}
hostname の部分はIPアドレスでもいいけど,/etc/hosts でホ...
~
~
**接続先 (host) [#v281ccbe]
上の ssh-copy-id が実行できれば特に何もしなくて良かった.~
前は /home/miyashita/.ssh/authorized_keys とかに id_rsa.p...
場合によっては /etc/sshd/sshd_config の
#codeprettify{{
# To disable tunneled clear text passwords, change to no ...
#PasswordAuthentication yes
}}
を確認する必要があるかも.~
~
~
**なんかエラー [#n13ac3f6]
これまで接続できていたはずなのに,以下のエラーが出るよう...
port 22: no matching host key type found. Their offer: s...
OpenSSH 8.9 の Release note に書いてあるように,ゲスト側...
#codeprettify{{
Host hostname
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
}}
と書いて置いたらまた接続できた.hostname にはホスト名かIP...
~
~
End:
*RSA暗号を使ったssh接続設定 [#u8918ce4]
セキュリティについては何ら保証できません.~
//ネットのあらゆる場所に情報が転がっているが,毎回全く同...
~
接続元と接続先を入れ替えて同じことをすれば,どちらからで...
~
**接続元 (guest) [#uc74a9fd]
#codeprettify{{
$ ssh-keygen -t rsa
}}
すると下のような文が出てくる.
Generating public/private rsa key pair.
Enter file in which to save the key (/home/miyashita/.ss...
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/miyashita/.s...
Your public key has been saved in /home/miyashita/.ssh/i...
入力を3回求められ,1回目は生成するファイルの場所,2,3回目...
~
無事生成できたらリモート接続先へ送る.
#codeprettify{{
$ ssh-copy-id -i ~/.ssh/id_rsa.pub miyashita@hostname
}}
hostname の部分はIPアドレスでもいいけど,/etc/hosts でホ...
~
~
**接続先 (host) [#v281ccbe]
上の ssh-copy-id が実行できれば特に何もしなくて良かった.~
前は /home/miyashita/.ssh/authorized_keys とかに id_rsa.p...
場合によっては /etc/sshd/sshd_config の
#codeprettify{{
# To disable tunneled clear text passwords, change to no ...
#PasswordAuthentication yes
}}
を確認する必要があるかも.~
~
~
**なんかエラー [#n13ac3f6]
これまで接続できていたはずなのに,以下のエラーが出るよう...
port 22: no matching host key type found. Their offer: s...
OpenSSH 8.9 の Release note に書いてあるように,ゲスト側...
#codeprettify{{
Host hostname
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
}}
と書いて置いたらまた接続できた.hostname にはホスト名かIP...
~
~
Page:
Edit with a page name which already exists