How to setup a public/private key pair in Windows Terminal for secure shell.
Also see related videos:
Install and configure Windows Terminal: • Windows Terminal Insta...
Windows SSH Server Public Key Authentication: • SSH To Windows Using P...
Commands to copy and paste:
-------------------
Linux:
-------------------
mkdir .ssh
chmod 700 .ssh
chmod 700 authorized_keys
rm id_rsa.pub
sudo nano /etc/ssh/sshd_config
sudo systemctl restart ssh
-------------------
Windows:
-------------------
ssh-keygen -b 4096
( update below with your [user folder], [user], and [host] )
scp C:\Users\[user folder]\.ssh\id_rsa.pub [user]@[host]:~/.ssh
7 мар 2021