Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH passwordless authentication for Remote access: Consider using ssh-copy-id instead of cat | ssh #23

Closed
tommybobbins opened this issue Apr 2, 2014 · 2 comments

Comments

@tommybobbins
Copy link

When appending to the authorized_keys file, I find it easier to use the built in command:

 $ ssh-copy-id -i ~/.ssh/id_rsa.pub pi@192.168.1.137

Which gives the following output

pi@192.168.1.137's password: 
Now try logging into the machine, with "ssh 'pi@192.168.1.137'", and check in:

  ~/.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

The advantage of this command is it has no backticks or pipes to worry about.

@tommybobbins tommybobbins changed the title SSH passwordless authentication for Remote access: Consider using ssh-copy-id instead of scp | cat SSH passwordless authentication for Remote access: Consider using ssh-copy-id instead of cat | ssh Apr 2, 2014
@asb
Copy link
Contributor

asb commented Apr 2, 2014

We'd rather just use this as well, but sadly it's not present on OS X (or I believe FreeBSD), meaning we'd have to give different instructions for OS X and for Linux.

@tommybobbins
Copy link
Author

Doh! Lovely set of documentation. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants