This repository has been archived by the owner. It is now read-only.

better instructions for getting ssh keys copied to remote and added to known hosts #2

Open
edrex opened this Issue Feb 7, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@edrex

edrex commented Feb 7, 2017

The debian image doesn't include the ssh command, so the command in README doesn't work.

What I did (on the host):

sudo ssh-copy-id -i conf/root/.ssh/id_rsa.pub -o "StrictHostKeyChecking no" -o "HostKeyAlgorithms=ssh-rsa" USER@HOST -p PORT
sudo cp /root/.ssh/known_hosts conf/root/.ssh/

Alternatively, this works:

core@libre /system/backups $ sudo docker run -it -v /system/backups/conf/root:/root debian /bin/bash
root@3707430e315f:/# apt-get update && apt-get install openssh-client -y
root@3707430e315f:/# ssh-copy-id -o "StrictHostKeyChecking no" -o "HostKeyAlgorithms=ssh-rsa" USER@HOST -p PORT

I didn't try to turn that into a one-liner.

@pierreozoux

This comment has been minimized.

Show comment
Hide comment
@pierreozoux

pierreozoux Feb 14, 2017

Member

yes sorry, instructions are a bit bare...
I have to find time to make it better!

Member

pierreozoux commented Feb 14, 2017

yes sorry, instructions are a bit bare...
I have to find time to make it better!

@edrex

This comment has been minimized.

Show comment
Hide comment
@edrex

edrex Feb 14, 2017

I'm happy to help with documentation/polish tasks

edrex commented Feb 14, 2017

I'm happy to help with documentation/polish tasks

@edrex

This comment has been minimized.

Show comment
Hide comment
@edrex

edrex Feb 14, 2017

you can assign me if you want

edrex commented Feb 14, 2017

you can assign me if you want

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.