forked from samuel-p/server-security-wiki
Compare commits
2 commits
95482b21c7
...
58bd8267da
Author | SHA1 | Date | |
---|---|---|---|
58bd8267da | |||
ca74cbe854 |
1 changed files with 6 additions and 2 deletions
|
@ -12,7 +12,11 @@ Create a new key pair on your client:
|
|||
ssh-keygen -b 4096
|
||||
```
|
||||
|
||||
Remember the path and password you choosed. Append the created public key from `/<your-path>/<key-name>.pub` on your client in the `/home/<user>/.ssh/authorized_keys` on your server.
|
||||
Remember the path and password you choosed. Append the created public key from `/<your-path>/<key-name>.pub` on your client in the `/home/<user>/.ssh/authorized_keys` on your server. Alternatively you can use the command `ssh-copy-id` on your local client. For this command you can do the following:
|
||||
|
||||
```bash
|
||||
ssh-copy-id -i /<your-path>/<key-name>.pub user@host
|
||||
```
|
||||
|
||||
Now edit `/etc/ssh/sshd_config` on your server and set the following values:
|
||||
|
||||
|
|
Loading…
Reference in a new issue