豚吐露@wiki
ssh起動時にCould_not_load_host_keyと出て接続できない
最終更新:
Bot(ページ名リンク)
-
view
WSL上のsshにteratermで接続
Ubuntu18.04LTS on WSL
Windows10Home(64bit) 1903
Windows10Home(64bit) 1903
h5
多分、16.04辺りでも起きたと思う。
$ sudo apt install ssh
$ sudo service ssh start
* Starting OpenBSD Secure Shell server sshd Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_ecdsa_key Could not load host key: /etc/ssh/ssh_host_ed25519_key [ OK ]
$ sudo dpkg-reconfigure ssh
$ sudo ssh-keygen -A
$ sudo ssh-keygen -A
sshd_config
defauftの設定だとpassword接続できないので設定変更。
$ sudo vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
PasswordAuthentication yes
$ sudo service ssh restart
* Restarting OpenBSD Secure Shell server sshd [ OK ]
更新日: 2019年09月23日 (月) 07時57分04秒