<primary-label ref="document"></primary-label>

# Set up SSH keys

How to setup access to Linux systems using SSH keys.
## ___________________

Linux server:
```
cd ~/.ssh
$ ssh-keygen -t ed25519
```
Put id_ed25519.pub key content -> ~/.ssh/authorized_keys
```
$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys
$ chown $USER:$USER ~/.ssh -R
```
Windows client:
```
copy Linux server: id_ed25519 -> Windows: C:\users\<user>\.ssh\id_ed25519_<server name>_<server user>  

In Solar-putty:  
Left-top menu-dots: Generate certificates  

In Putty keygen:  
Conversions/import key: C:\users\<user>\.ssh\id_ed25519_<server name>_<server user>  

Save private key: 
id_ed25519_<server name>_<server user>.ppk  

Solar-putty: Settings/Credentials/Private key: 
id_ed25519_<server name>_<server user>.ppk  
```

<a  href="FrontPage.md" >Back to frontpage</a>