18 lines
526 B
Markdown
18 lines
526 B
Markdown
|
---
|
||
|
creation date: 2022-01-08
|
||
|
tags: [note,linux,archlinux,hetzner,storage,disk]
|
||
|
---
|
||
|
|
||
|
# Storagebox
|
||
|
|
||
|
Create a compatible ssh key and transfer to the user
|
||
|
|
||
|
```
|
||
|
ssh-keygen-rsa id_rsa
|
||
|
|
||
|
ssh-keygen -e -f .ssh/id_rsa.pub | grep -v "Comment:" > .ssh/id_rsa_rfc.pub
|
||
|
cat .ssh/id_rsa.pub >> storagebox_authorized_keys
|
||
|
cat .ssh/id_rsa_rfc.pub >> storagebox_authorized_keys
|
||
|
|
||
|
echo -e "mkdir .ssh \n chmod 700 .ssh \n put storagebox_authorized_keys .ssh/authorized_keys \n chmod 600 .ssh/authorized_keys" | sftp ...@....your-storagebox.de
|
||
|
```
|