赞
踩
In Ubuntu 18.04 ist im Microsoft Windows Subsystem für Linux (WSL) der SSH-Server standardmäßig nicht enthalten. Daher müssen zuerst die erforderlichen Pakete installiert werden.
apt install openssl openssh-client\ openssh-server openssh-sftp-server\ ssh-import-id
Danach die fehlenden Host-Keys erzeugen mit
ssh-keygen -A
Erzeugt man die Schlüssel nicht, entsteht beim Neustart des SSH-Servers die Fehlermeldung
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
vi /etc/ssh/sshd_config
Port 22 PasswordAuthentication yes
service ssh restart
* Restarting OpenBSD Secure Shell server sshd [ OK ]
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。