LoginSignup
0
0

More than 5 years have passed since last update.

WSLでssh localhost

Posted at
Windowsキー -> サービス

SSHなんたらを二つとも切る

sudo cp -a ~/.ssh/id_rsa /etc/ssh/id_rsa
sudo cp -a ~/.ssh/id_rsa.pub /etc/ssh/id_rsa.pub
sudo chmod 600 id_rsa id_rsa.pub
cat /etc/ssh/id_rsa.pub | sudo tee /etc/ssh/authorized_keys
/etc/ssh/sshd_config
HostKey /etc/ssh/id_rsa
UsePrivilegeSeparation no
PermitRootLogin yes
AuthorizedKeysFile  /etc/ssh/authorized_keys
PasswordAuthentication no

・参考
http://fftest33.blog.fc2.com/blog-entry-121.html

0
0
0

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