# Ubuntu 22.04 support RSA Key for SSH 1. Set ".ssh" folder permission to 700 2. Set "authorized_keys" file permission to 600 3. Add two lines in /etc/ssh/sshd_config ``` HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa ``` ![](https://hackmd.io/_uploads/rkTvVZH-T.png) 4. Modify /etc/ssh/sshd_config ``` PermitRootLogin yes StrictModes yes ... PubkeyAuthentication yes ``` ![](https://hackmd.io/_uploads/SkHwSWBb6.png)