I want to log in without having to enter a password. I have explored my options and generated keys. The next step mentioned is to copy the file contents to authorized_host file. But that file does not exist in my case. I am connecting to a prompt issued by a local daemon. So basically I am connecting to localhost.
Asked
Active
Viewed 3,797 times
3 Answers
2
Just create it ;)
If you're on linux you can use:
ssh-copy-id user@host

Pascal Schmiel
- 1,738
- 12
- 17
0
What is your case?
If you want to connect to remote server using public key, you must creat a pair of key, one store on your local machine, is private key. Then you must copy public key to remote server, use ssh-keygen to generate content of authorized_keys file:
ssh-keygen -i -f publickey.pub >> .ssh/authorized_keys
Then try to connect to remote host.

cuonglm
- 2,386
- 2
- 16
- 20
-
-
-
You only do the same task above, but in your local machine, not in remote host. – cuonglm May 08 '13 at 11:38
0
.ssh/authorized_hosts
is the wrong file name.
.ssh/authorized_keys
is the file you should be creating.

MadHatter
- 79,770
- 20
- 184
- 232